Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

ActionManager.OnPickUpTrigger still trigger actions when objects are not visible

$
0
0

Hello,

 

I'm using a ActionManager.OnPickUpTrigger to trigger a translation of an object. It works well, and was surprisingly easy to setup. But I have a problem : actions are triggered even if the object is hidden behind another one.

You can check it on this babylon playground :

http://www.babylonjs.com/playground/?17

If you click on a target through the moving torus, the target is picked and triggered anyway, as if it was visible.

 

Is it the correct behaviour ? Should I use a more traditionnal picking code instead ?

 


Viewing all articles
Browse latest Browse all 388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>