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
Share
Post a Comment
for "Clickable Three Js Objects / Convex Items"
Post a Comment for "Clickable Three Js Objects / Convex Items"