I have a simple scene where I need to change the maxDistance property of a joint by pressing a button dynamically after I attach this joint to the objects. There’s a method for Joint object called as joint.updateDistance(), but when I do that, the connected object goes straight in the center of main object.
heres the link to playground: https://playground.babylonjs.com/#FRJ0A4#1
(notice that I am using ‘m’ key to change the distance property of joint)
what am I doing wrong??