0

I have multiple scene like => How to change the zOrder of object with Threejs?.

I want to select now an element with a Raycast, but I get one raycast for each scene, how can I handle all taken elements from all scenes at ones.

gman
  • 92,182
  • 29
  • 231
  • 348
Antoni
  • 1,170
  • 2
  • 11
  • 34

1 Answers1

4

You can try to add all objects of both scenes into a separate array. In the next step, you use this array in order to call Raycaster.intersectObjects() like this:

raycaster.intersectObjects( objects );
Mugen87
  • 23,844
  • 4
  • 18
  • 37