Skip to content Skip to sidebar Skip to footer

Raycasting Against 'subscenes' In Three.js

So I am working with the webgl_interactive_cubes.html in the three.js examples, and I have a relatively simple question: Is it possible to test for intersection of a ray with the c

Solution 1:

You just need to set the recursive flag:

var intersects = raycaster.intersectObjects( scene.children, true );

three.js r.58

Post a Comment for "Raycasting Against 'subscenes' In Three.js"