Search code examples
androidbox2dandengine

Breaking join between two vertices in Box2D AndEngine


How to destroy revolute joint dynamically in Box2D Extension of AndEngine. I would really appreciate the correct and explanatory answer.


Solution

  • The method createJoint(jointDef) returns a Joint object which you can later use to destroy the joint: mPhysicsWorld.destroyJoint(revoluteJointdef)
    Source: http://www.andengine.org/forums/physics-box2d-extension/destroy-revolutejointdef-t5979.html