aWeirdo Posted March 1, 2017 Share Posted March 1, 2017 Hey, Is scene.pick with fastcheck broken? i want to increase the picking area of some meshes, without having to make boxes around them or anything like that. so i recalled there's a fastcheck option in the scene.pick function, which is used to pick boundingboxes, but now i can't seem to get it working; If you click on skull mesh, it is picked, if you click on boundingbox without hitting the actual mesh, it isn't picked.http://www.babylonjs-playground.com/#1PJYD6#3 Any ideas? Quote Link to comment Share on other sites More sharing options...
Kesshi Posted March 1, 2017 Share Posted March 1, 2017 fastCheck is working as intended but not as you expect i think It is not performing a bounding box only check. It is just like the ordinary picking but it returns the first hit and not the nearest/best hit. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 1, 2017 Share Posted March 1, 2017 Correct Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted March 1, 2017 Author Share Posted March 1, 2017 i think i was misunderstood, but the main question would be; how come it doesn't return a hit when clicking on a boundingbox? also, comment from babylon.max.js /// <param name="fastCheck">Launch a fast check only using the bounding boxes. Can be set to null.</param> Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 2, 2017 Share Posted March 2, 2017 The fast check using bounding boxes to invalidate candidate. Not to validate them. Steffen and aWeirdo 2 Quote Link to comment Share on other sites More sharing options...
Steffen Posted November 15, 2017 Share Posted November 15, 2017 @aWeirdo did you find any workaround for picking only bounding boxes? Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 15, 2017 Share Posted November 15, 2017 I remember I once implemented such a function, which had a single problem - you don't get the intersected point in the pickingInfo, as it is impossible to calculate. I will try finding it and add it as a suggestion for a quickPick function. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted December 17, 2017 Author Share Posted December 17, 2017 Hi @Steffen This seems to have slipped my mind, sorry! i created a pickingBox, like so; http://playground.babylonjs.com/#7CTLZM#1 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.