VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Member Functions | List of all members
DestructionListener Class Reference

Handler for object destruction notifications in b2World. More...

Inheritance diagram for DestructionListener:

Public Member Functions

virtual void SayGoodbye (b2Joint *joint) override
 Notifies that joint is about to be destroyed. More...
 
virtual void SayGoodbye (b2Fixture *fixture) override
 Notifies that fixture is about to be destroyed. More...
 

Detailed Description

Handler for object destruction notifications in b2World.

Implements b2DestructionListener. Used by Engine to clean up resources on destruction of various Box2D objects. Destruction of objects can occur because of manual deletions, and also internal Box2D deletions. For example, when a b2Body is destroyed, its associated b2Fixtures and b2Joints are also destroyed.

Member Function Documentation

virtual void DestructionListener::SayGoodbye ( b2Joint *  joint)
overridevirtual

Notifies that joint is about to be destroyed.

Parameters
jointb2Joint getting destroyed
virtual void DestructionListener::SayGoodbye ( b2Fixture *  fixture)
overridevirtual

Notifies that fixture is about to be destroyed.

Parameters
fixtureb2Fixture getting destroyed