Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
b2DestructionListener Class Referenceabstract

`#include <b2WorldCallbacks.h>`

Inheritance diagram for b2DestructionListener:

## Public Member Functions
virtual | ~b2DestructionListener ()
virtual void | SayGoodbye (b2Joint *joint)=0
virtual void | SayGoodbye (b2Fixture *fixture)=0

## Detailed Description

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

## Constructor & Destructor Documentation

virtual ~b2DestructionListener | ( |  | ) |
| inline virtual

## Member Function Documentation

virtual void SayGoodbye | ( | b2Joint * | joint | ) |
| pure virtual

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

Implemented in Scene.

virtual void SayGoodbye | ( | b2Fixture * | fixture | ) |
| pure virtual

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

Implemented in Scene.

The documentation for this class was generated from the following file:

- Box2D/Dynamics/b2WorldCallbacks.h