mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.63k stars 35.37k forks source link

intersectObject doesnt work on Object3D and children #1994

Closed Huck closed 12 years ago

Huck commented 12 years ago

hi guys,

not sure if this is a bug or a feature so i ask before filing, but i just noticed that intersectObject, when ray picking does not work if the intesect obect is of type Object3D (acting as a container of child meshes). in the function it checks if the object is type particle or mesh, and does nothing if not of those 2 types.

if the Object3D has children, shouldnt it parse them too for ray intersection or is it a design choice that it does not?

thanks

WestLangley commented 12 years ago

1609

Huck commented 12 years ago

fair enough :)