Jump to content

scene.onPointerDown and ActionManager issue


satguru
 Share

Recommended Posts

scene.onPointerDown and ActionManager do not work well with each other.

When an ActionManager is added to a mesh, the mesh becomes unpickable by the onPointerDown function

see playground example

http://www.babylonjs-playground.com/#1UTZEV#13

with  lines 42 to 53 commented out everything works fine. The sphere is pickable.

Click the sphere and check the console message. It shows it was picked

 

un-comment only line 42.The sphere is no longer pickable.

un-comment line 42 to 47. sphere becomes pickable. 

un-comment line 42 to 53. sphere becomes unpickable.

Please check.

 

 

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...