2

I have searched extensively and haven't been able to find any guidelines or posts on destroying a weldJoint. How do I destroy the weldJoint between bodyA and bodyB? I created my weldJoint in the following way.

    weldJointDef.Initialize(bodyA, bodyB, bodyA->GetWorldCenter());
    weldJointDef.collideConnected = false;
    weldJoint = (b2WeldJoint*) world->CreateJoint(&weldJointDef);
David H
  • 40,852
  • 12
  • 92
  • 138
nullity
  • 23
  • 3

1 Answers1

2
world->DestroyJoint( weldJoint );
iforce2d
  • 8,194
  • 3
  • 29
  • 40