![]() |
Public API Reference |
Inherit this class if you want to know when gravity is applied to a certain iPcLinearMovement. More...
#include <propclass/linmove.h>
Public Member Functions | |
| virtual void | Callback ()=0 |
| The gravity is applied on this frame on the iPcLinearMovementiPcLinearMovement of this entity, ie its vertical velocity is negative. | |
Inherit this class if you want to know when gravity is applied to a certain iPcLinearMovement.
This is usefully if you for example want to apply certain gravity or something on the way up, but not on the way down (Parachutes and things like that). Register this callback with iPcLinearMovement::AddGravityCallback(), and remove it with iPcLinearMovement::RemoveGravityCallback()
| virtual void iPcGravityCallback::Callback | ( | ) | [pure virtual] |
The gravity is applied on this frame on the iPcLinearMovementiPcLinearMovement of this entity, ie its vertical velocity is negative.