Kesshi Posted April 11, 2016 Share Posted April 11, 2016 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. Quote Link to comment Share on other sites More sharing options...
Temechon Posted April 11, 2016 Share Posted April 11, 2016 A line cannot be picked at the moment. I'm wrong people. See why below Quote Link to comment Share on other sites More sharing options...
Kesshi Posted April 11, 2016 Author Share Posted April 11, 2016 39 minutes ago, Temechon said: A line cannot be picked at the moment. Why is picking working then in my playground? Is think line picking was added just some time ago. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 11, 2016 Share Posted April 11, 2016 The solution is to exclude the line that should not be clicking: http://www.babylonjs-playground.com/#1C5IUC#1 Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 11, 2016 Share Posted April 11, 2016 Yep, picking was added - @Nockawa , wanna check the pick with isPickable false? Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 11, 2016 Share Posted April 11, 2016 1 minute ago, Dad72 said: The solution is to exclude the line that should not be clicking: http://www.babylonjs-playground.com/#1C5IUC#1 That would be a temp solution, yes, but he is right - when setting isPickable = false I would also expect the mesh to not be picked. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 11, 2016 Share Posted April 11, 2016 Yes Raanan ,I propose this as a temporary solution seen that line cannot be picked until now. Quote Link to comment Share on other sites More sharing options...
Kesshi Posted April 12, 2016 Author Share Posted April 12, 2016 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). Quote Link to comment Share on other sites More sharing options...
Nockawa Posted April 12, 2016 Share Posted April 12, 2016 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. Regards, Nockawa Kesshi 1 Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 12, 2016 Share Posted April 12, 2016 PR is merged, soon in the Babylon.js near you. And in the playground Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.