PackageBox2D.Dynamics
Classpublic class b2DestructionListener
Sourceb2DestructionListener.as

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.



Public Methods
 MethodDefined by
  
Called when any joint is about to be destroyed due to the destruction of one of its attached bodies.
b2DestructionListener
  
Called when any shape is about to be destroyed due to the destruction of its parent body.
b2DestructionListener
Method detail
SayGoodbyeJoint()method
public function SayGoodbyeJoint(joint:b2Joint):void

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

Parameters
joint:b2Joint
SayGoodbyeShape()method 
public function SayGoodbyeShape(shape:b2Shape):void

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

Parameters
shape:b2Shape