Jump to content

How to disable default pointer move?


adam
 Share

Recommended Posts

I've been working on something that required me to look into the scene._internalPick.

https://github.com/BabylonJS/Babylon.js/blob/99bb973bee5779f5941a28767b801035b58782a0/src/babylon.scene.js#L1964

Every time the mouse moves it loops through the meshes in the scene and if the mesh passes the predicate test it checks to see if the ray intersects it.   The intersect method allocates a BABYLON.PickingInfo object on each call.  If a PickingInfo object isn't created on the last pass of the loop, one is allocated to return to the caller of internalPick.

I'm pretty sure this happens by default:

https://github.com/BabylonJS/Babylon.js/blob/99bb973bee5779f5941a28767b801035b58782a0/src/babylon.scene.js#L617

What would be a good way to disable that if someone doesn't need it?

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