Class b2DestructionListener

Joints and shapes are destroyed when their associated body is destroyed. Implement this listener so that you may nullify references to these joints and shapes.

Index

Methods

Methods

public SayGoodbyeFixture(fixture: b2Fixture)

Called when any fixture is about to be destroyed due to the destruction of its parent body.

Parameters

  • fixture: b2Fixture

    b2Fixture being destroyed.

public SayGoodbyeJoint(joint: b2Joint)

Called when any joint is about to be destroyed due to the destruction of one of its attached bodies.

Parameters

  • joint: b2Joint

    b2Joint being destroyed.