davrous Posted March 21, 2017 Share Posted March 21, 2017 Hello, As some of you may know, we have been forced to introduce a breaking change in the way to use the physics engines starting with v2.4. We try as much as possible to avoid breaking but sometimes it can help introducing a much better way to achieve something. This is the case for physics as now, the physics impostor and its associated mesh are better linked. To better understand why, extract from the doc: "The physics impostor synchronizes the physics engine's body and the connected object with each frame. That means that changing the object's position or rotation in Babylon code will also move the impostor. The impostor is also the one updating the object's position after the physics engine is finished calculating the next step". In previous implementation, we had a lot of users questions & feedback that didn't understand why moving the mesh wasn't doing anything once it was transformed into a "physic object". Please read our documentation to better understand how to use physics in Babylon.js: http://doc.babylonjs.com/overviews/using_the_physics_engine I've then updated my tutorial and the default sample of our main page: - Understanding collisions & physics by building a cool WebGL Babylon.js demo with Oimo.js: https://www.davrous.com/2014/11/18/understanding-collisions-physics-by-building-a-cool-webgl-babylon-js-demo-with-oimo-js/ - Main sample: http://www.babylonjs.com/Demos/Physics/ Thanks! David jerome, ian, JackFalcon and 2 others 5 Quote Link to comment Share on other sites More sharing options...
ian Posted April 2, 2017 Share Posted April 2, 2017 Davrous. If we have model and box impostors (cubes) around model. And if box-impostors (cubes) are child of model. If we rotate/move model Does box-impstors rotate as model or not. If not how can we achieve that? Is there any example? Quote Link to comment Share on other sites More sharing options...
davrous Posted April 2, 2017 Author Share Posted April 2, 2017 Ping @RaananW ian 1 Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 4, 2017 Share Posted April 4, 2017 I am pinged, therefore I am! The parenting system is actually creating a rigid compound body, so it is not quite possible. We have discussed internally how we can change the parent-child system when physics are involved, and I hope I will introduce the change in the framework pretty soon. I will consider your question during the implementation and see how I can make it possible. 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.