Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

The updateDistance method of a DistanceJoint does not work with oimo

$
0
0

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

 


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>