Suphi Posted February 27, 2016 Share Posted February 27, 2016 If we position a object off center and edit the mesh with UpdateVerticesData collisions stop working correctly PLAYGROUND DEMOING BUGhttp://www.babylonjs-playground.com/#NTUKO#2 i believe this bug is related to this bug: Quote Link to comment Share on other sites More sharing options...
jerome Posted February 27, 2016 Share Posted February 27, 2016 just add ground.refreshBoundingInfo() after the vertex updates : http://www.babylonjs-playground.com/#NTUKO#3 Quote Link to comment Share on other sites More sharing options...
Suphi Posted February 27, 2016 Author Share Posted February 27, 2016 if we dorefreshBoundingInfo(); then whats the point of passing true as collisions seem to work fine if set to false and we also get about 200% performance increase by passing falseupdateVerticesData(BABYLON.VertexBuffer.PositionKind, positions, false); 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.