Relative Content

Tag Archive for javascriptthree.js3d

Decals not working with instanced meshes, in Three.js

Been dabbling around with decals for a while. While it works like a charm with normal meshes, it doesn’t work with instanced meshes. How can I make it work with an instanced mesh? Does it require modifications to the source code?

Why can’t my Box3 bounding box detect an intersect between my GLTF/FBX models?

I’m new to ThreeJS so I don’t know if the Box3 is commonly used for collision detection.
I’ve attached a Box3 bounding box to detect collision and prevent the character from walking into the bounding box of the building. When I drew out a helper line, I can clearly see that the bounding boxes are there. But when my character walks into the building and the two bounding boxes intersect, it doesn’t seem to console log out the intersects.