Intersect should not pick invisible objects

#2277 was closed without comment. A ray should not intersect invisible objects; a cursory reading of the source doesn’t appear to show any check for visible at all in that part of the code. And yes, I realize you could iterate the returned objects but I still maintain that it shouldn’t be checking invisible objects at all. Or at least it could be a parameter somewhere.

Author: Fantashit

1 thought on “Intersect should not pick invisible objects

  1. Basically, Ray/Raycaster used to ignore invisible objects for a while, but then there were people that needed those to be checked too. So, instead of overcomplicating the code I opted for letting the user handle that instead.

    So if you want Raycaster to not check invisible objects don’t add those to the list of objects you’re passing.

Comments are closed.