Jump to content

Joints Physics difference (Oimo vs Cannon)


tranlong021988
 Share

Recommended Posts

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. 

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

  • 1 month later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...