mind0n Posted October 4, 2018 Share Posted October 4, 2018 Refer to the playground url below, sprite is in front of the sphere, however the click / pick event triggered on backend sphere first regardless of the sprite's position. Url: https://www.babylonjs-playground.com/#9RUHH#29 Expected result: Player clicked will be triggered instead of Sphere clicked. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 4, 2018 Share Posted October 4, 2018 Yep this is by "design". To save resources we are not doing both picking (mesh and sprites). We do meshes first and if no interaction is done then sprites. That is something we could revisit though mind0n 1 Quote Link to comment Share on other sites More sharing options...
mind0n Posted October 6, 2018 Author Share Posted October 6, 2018 Thanks @Deltakosh for the response, is there any way to force the mesh (eg. plain) to always facing the camera? I choose sprite to render clickable image because it always faces the camera automatically. If mesh events will be triggered before sprite events, then I need a way to let the mesh always faces the camera so I can render the image on the mesh instead. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 6, 2018 Share Posted October 6, 2018 You can use meshes with billboard mode: https://www.babylonjs-playground.com/#UJEIL#13 mind0n 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted October 6, 2018 Share Posted October 6, 2018 or this old good SPS with planar quad particles in billboard mode http://doc.babylonjs.com/how_to/solid_particle_system (they are pickable) ? GameMonetize and mind0n 2 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.