#include <velocitycontroller.h>
Inheritance diagram for oxygen::VelocityController:
Public Member Functions | |
VelocityController () | |
virtual | ~VelocityController () |
float | GetMaxVelocity () |
void | SetMaxVelocity (float vel) |
Protected Member Functions | |
virtual void | PrePhysicsUpdateInternal (float deltaTime) |
enforces the maximum allowed velocity | |
Protected Attributes | |
float | mMaxVel |
maximum velocity, the controlled body can attain |
Definition at line 31 of file velocitycontroller.h.
|
Definition at line 26 of file velocitycontroller.cpp. |
|
Definition at line 31 of file velocitycontroller.cpp. |
|
Definition at line 35 of file velocitycontroller.cpp. References mMaxVel. |
|
enforces the maximum allowed velocity
Reimplemented from oxygen::BaseNode. Definition at line 45 of file velocitycontroller.cpp. References oxygen::BodyController::mBody, mMaxVel, salt::TVector< DATATYPE, ELEMENTS, TYPE >::Normalize(), and salt::TVector< DATATYPE, ELEMENTS, TYPE >::SquareLength(). Here is the call graph for this function: ![]() |
|
Definition at line 40 of file velocitycontroller.cpp. References mMaxVel. |
|
maximum velocity, the controlled body can attain
Definition at line 55 of file velocitycontroller.h. Referenced by GetMaxVelocity(), PrePhysicsUpdateInternal(), and SetMaxVelocity(). |