tranlong021988 Posted November 7, 2016 Share Posted November 7, 2016 Hi everyone, I'm making a visualization of ghost effect based on Cloth Demo, This is good result til now(with Cannon Physics): http://www.babylonjs-playground.com/#1J3WEP#29 But after changing to Oimo Physics, everything seem go wrong, may be by joints handling difference between Oimo and Cannon, this is PG: http://www.babylonjs-playground.com/#1J3WEP#30 As you can see, the cloth not stretched anymore. Anyone can please point me ? Sorry my poor English. Quote Link to comment Share on other sites More sharing options...
tranlong021988 Posted November 8, 2016 Author Share Posted November 8, 2016 Ok I will keep sticking with Cannon Physics. Thanks. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 15, 2016 Share Posted November 15, 2016 Hi @tranlong021988, sorry for the slow replies. I'm not sure why this happens... but... ...make line 5 be... scene.enablePhysics(new BABYLON.Vector3(0, -50, 0), BABYLON.OimoJSPlugin()); (remove the 2nd 'new'). The cloth should look okay again. Hope this helps. Oimo is the "default" physics engine for BJS, so you can activate it like line 5 in THIS playground demo. Party on! Quote Link to comment Share on other sites More sharing options...
tranlong021988 Posted December 15, 2016 Author Share Posted December 15, 2016 thank you @Wingnut 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.