#include <BodyActivationListener.h>
A listener class that receives events when a body activates or deactivates. It can be registered with the BodyManager (or PhysicsSystem).
◆ ~BodyActivationListener()
virtual BodyActivationListener::~BodyActivationListener |
( |
| ) |
|
|
virtualdefault |
Ensure virtual destructor.
◆ OnBodyActivated()
Called whenever a body activates, note this can be called from any thread so make sure your code is thread safe. At the time of the callback the body inBodyID will be locked and no bodies can be written/activated/deactivated from the callback.
◆ OnBodyDeactivated()
Called whenever a body deactivates, note this can be called from any thread so make sure your code is thread safe. At the time of the callback the body inBodyID will be locked and no bodies can be written/activated/deactivated from the callback.
The documentation for this class was generated from the following file: