klem Posted September 12, 2016 Share Posted September 12, 2016 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 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 13, 2016 Share Posted September 13, 2016 Hello! Well done! it was a bug. I will update the repo very soon! Quote Link to comment Share on other sites More sharing options...
klem Posted September 13, 2016 Author Share Posted September 13, 2016 Super, Glad to hear it! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 14, 2016 Share Posted September 14, 2016 I also updated the playground 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.