Example usage for com.badlogic.gdx.physics.box2d World destroyJoint

List of usage examples for com.badlogic.gdx.physics.box2d World destroyJoint

Introduction

In this page you can find the example usage for com.badlogic.gdx.physics.box2d World destroyJoint.

Prototype

public void destroyJoint(Joint joint) 

Source Link

Document

Destroy a joint.

Usage

From source file:com.tnf.ptm.entities.ship.Door.java

License:Apache License

public void onRemove(PtmGame game) {
    World w = game.getObjMan().getWorld();
    Body doorBody = getBody();
    w.destroyJoint(myJoint);
    w.destroyBody(doorBody);
}

From source file:org.destinationsol.game.ship.Door.java

License:Apache License

public void onRemove(SolGame game) {
    World w = game.getObjMan().getWorld();
    Body doorBody = getBody();
    w.destroyJoint(myJoint);
    w.destroyBody(doorBody);
}