jacquesr Posted February 8, 2016 Share Posted February 8, 2016 Hi, I am dynamically updating the size of a cube using mesh.updateMeshPositions. Yet, afterwards, I want to work with the updated size. I usually get the new size using the boundinginfo, yet it turns out it is not updated. How do I correctly update the boundinginfo? I tried it by providing the update method mesh.getWorldMatrix(), yet that seems to be totally wrong. See the example http://www.babylonjs-playground.com/#1UZIZC#7 Regards Jacques Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 8, 2016 Share Posted February 8, 2016 Simply refresh the bounding info - http://www.babylonjs-playground.com/#1UZIZC#8 (line 47) Quote Link to comment Share on other sites More sharing options...
jacquesr Posted February 8, 2016 Author Share Posted February 8, 2016 Well, did not look for that method on the mesh :-) Thanks a lot! Wingnut 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.