Jump to content

The updateDistance method of a DistanceJoint does not work with oimo


klem
 Share

Recommended Posts

Hi,

I would like to control the distance between two joined objects. With CannonJS, it works, but we are not able to specified pivot points. So I tried with Oimo but there is an exception "Uncaught TypeError: Cannot set property 'upperLimit' of undefined".

Here's the playground that reproduces the bug : http://www.babylonjs-playground.com/#YKWYN (updateDistance is called on mouse down/up).

If you change the physics plugin to target CannonJSPlugin, it works as expected.

BTW, I've read that default physics engine is OimoJS. But, it seems not to be true ! In fact, in this playground, if you remove the second parameter of the enablePhysics function call, it works... any thought on this ?

klem

 

Link to comment
Share on other sites

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...