Search code examples
unity-game-enginebox2dfarseer

Removing joints with Farseer


I'm using Farseer in Unity and I'm having difficulty figuring out how to remove joints using script. I want to remove all the joints in my scene. I've been trying to use things like: world.JointList and world.RemoveJoint but since in Unity the joints are components (ie FSPulleyJointComponent) I don't understand how to access the joint itself.

Any help would be much appreciated.


Solution

  • My bad... world.JointList and world.RemoveJoint both work fine. I wasn't getting the world properly.