VoltAir
|
Handler for object destruction notifications in b2World
.
More...
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... | |
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.
|
overridevirtual |
Notifies that joint
is about to be destroyed.
joint | b2Joint getting destroyed |
|
overridevirtual |
Notifies that fixture
is about to be destroyed.
fixture | b2Fixture getting destroyed |