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.
More...
#include <WorldCallbacks.hpp>
|
virtual | ~DestructionListener () noexcept |
|
virtual void | SayGoodbye (Joint &joint)=0 |
| Called when any joint is about to be destroyed due to the destruction of one of its attached bodies. More...
|
|
virtual void | SayGoodbye (Fixture &fixture)=0 |
| Called when any fixture is about to be destroyed due to the destruction of its parent body. More...
|
|
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.
◆ ~DestructionListener()
virtual box2d::DestructionListener::~DestructionListener |
( |
| ) |
|
|
inlinevirtualnoexcept |
◆ SayGoodbye() [1/2]
virtual void box2d::DestructionListener::SayGoodbye |
( |
Joint & |
joint | ) |
|
|
pure virtual |
Called when any joint is about to be destroyed due to the destruction of one of its attached bodies.
◆ SayGoodbye() [2/2]
virtual void box2d::DestructionListener::SayGoodbye |
( |
Fixture & |
fixture | ) |
|
|
pure virtual |
Called when any fixture is about to be destroyed due to the destruction of its parent body.
The documentation for this class was generated from the following file: