How to dispose joint ?

Topics: Developer Forum, User Forum
Sep 9, 2010 at 9:46 PM

I'm making game using FS3, i'm converting code form 2.1 to 3.0.

I was looking for a way to dispose joint, in 2.1 that was possible, but Is there a way in 3.0 ?

I created catapult and on click you can throw the ball, and I used to dispose the joint so

the ball that is attached to it can launch it self. I can't do that by removing the joint from world.

Pleasse help ! :)


See the image :


Sep 9, 2010 at 9:54 PM

You can't remove the joint while the simulation is running. Just wait until the current simulation step is done and then remove the joint.

Sep 9, 2010 at 10:34 PM

I tried that but when I do that the ball loses all the valocity, friction, torque from the throw ... That's the problem for me. Oh well, i figure something out, thanks anyway genbox ... :)

Sep 9, 2010 at 10:37 PM

If you have AutoClearForces set to true (true by default) it will clear all the forces in the world on each update.