kyptov Posted June 13, 2017 Share Posted June 13, 2017 Why BuildingInfo not working? I want to collide with box on some distance. http://www.babylonjs-playground.com/#IEDXC6 Here PG, I set a larger BoundingInfo and expecting camera to stop before box on some distance, but still camera stopping on box itself. I can increase camera`s ellipsoid, but I don want, because in my scene different meshes will have different BoundingInfo. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 13, 2017 Share Posted June 13, 2017 BuildingInfo is a bounding box to inform, it does not take into account collisions. it is only a information box Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 13, 2017 Share Posted June 13, 2017 Yep correct, the bounding box is just used to define if we need co compute collisions. I suggest adding invisible box which will have the checkCollision enabled and not use the actual mesh for that Quote Link to comment Share on other sites More sharing options...
kyptov Posted June 14, 2017 Author Share Posted June 14, 2017 5 hours ago, Deltakosh said: Yep correct, the bounding box is just used to define if we need co compute collisions. I suggest adding invisible box which will have the checkCollision enabled and not use the actual mesh for that Thank you. I found method _boundingInfo._checkCollision() and decided that it what I need. But deeper I found next checking in submeshes, where boundingInfo is not using. I will use extra Mesh with visibility = 0. GameMonetize 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.