Jump to content

isPickable ignored for lines


Recommended Posts

Just to clarify my problem.
Actually i don't want to pick lines at all but since i updated to the newest BJS 2.4 the line picking is interferring the normal mesh picking.
Lines which are in front of a mesh are getting picked now and not the mesh. This is correct but only if isPickable is true (in my opiniion).

Link to comment
Share on other sites

18 hours ago, Kesshi said:

The isPickable property is currently ignored for line meshes.
See this demo: http://www.babylonjs-playground.com/#1C5IUC
The red line should not be pickable.

Hello @Kesshi

Yes you're right, I misinterpreted the behavior of isPickable, I thought it was to say if the class could handle picking or not (because LinesMesh was already returning false) so I changed the implementation and always return true: which is not that it should be.

I'll submit a very simple PR in few mins that remove the get isPickable() method in order to let the AbstractMesh class do the correct job.

Once it's done and the PlayGround is updated you should have the expected behavior.



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.

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.


  • Recently Browsing   0 members

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