Gist df3588593711a8addd2cff52579ba3dd
✓ Published0🌍 Public
UUtopiah
Last edited May 27, 2020
Created on May 27, 2020
This WebGL visualization uses A-Frame and Three.js to detect and highlight intersections between 3D objects in a scene. It calculates bounding boxes for two objects retrieved from the DOM—a burger and an aquarium—using `THREE.Box3().setFromObject()` on their `object3D` components. Yellow and green `Box3Helper` outlines visualize each bounding volume, then the code calls `bbox_burger.intersectsBox(bbox_aq)` to test for overlap, returning a boolean that indicates whether the objects collide.
AI-generated description