dsman Posted May 1, 2015 Share Posted May 1, 2015 Let's say I have a have a plane in front of camera and then one another plane behind it. If I click, scene.pick will give me the first plane. Any way to get the plane behind it? Assuming the click would be touching the background plane if the foreground plane wasn't there ? Can we get something like array of all meshes comes in the path of click. And we can get whichever mesh we want in order. Like Threejs does I guess. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 1, 2015 Share Posted May 1, 2015 Hello, for performance reason, we return only the closest one. But you can provide a predicate to remove specific meshes from the hit testing (or jsut use mesh.isPickable = false) Quote Link to comment Share on other sites More sharing options...
dsman Posted May 1, 2015 Author Share Posted May 1, 2015 I know about mesh.isPickable . But I want to be able to choose both at same time. Any alternative workaround ? Quote Link to comment Share on other sites More sharing options...
iiceman Posted May 2, 2015 Share Posted May 2, 2015 Maybe you can do two picks. first set the closest plane to pickable false and do the pick, then make it pickable and pick again? Quote Link to comment Share on other sites More sharing options...
dsman Posted May 2, 2015 Author Share Posted May 2, 2015 Wow . That was so simple and silly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.