Jump to content

ActionManager.OnPickUpTrigger still trigger actions when objects are not visible


samlan
 Share

Recommended Posts

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 ?

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...