Skip to content Skip to sidebar Skip to footer

Clickable Three Js Objects / Convex Items

I modified an example from Three.js library and i try to add click event on objects. After a lot of attempts... I'm still not capable to listen clicks. This code produce convex fo

Solution 1:

THREE.SceneUtils.createMultiMaterialObject() creates an object with two child meshes.

So, you need to set the recursive flag to true when calling Raycaster.intersectObjects().

var intersects = ray.intersectObjects( objects, true );

three.js r.62

Post a Comment for "Clickable Three Js Objects / Convex Items"