Utility class used to move node with constant velocity. More...
#include <constant-velocity-helper.h>
Public Member Functions | |
ConstantVelocityHelper (const Vector &position) | |
ConstantVelocityHelper (const Vector &position, const Vector &vel) | |
Vector | GetCurrentPosition (void) const |
Vector | GetVelocity (void) const |
void | Pause (void) |
void | SetPosition (const Vector &position) |
void | SetVelocity (const Vector &vel) |
void | Unpause (void) |
void | Update (void) const |
void | UpdateWithBounds (const Rectangle &rectangle) const |
void | UpdateWithBounds (const Box &bounds) const |
Private Attributes | |
Time | m_lastUpdate |
bool | m_paused |
Vector | m_position |
Vector | m_velocity |
Utility class used to move node with constant velocity.
Definition at line 36 of file constant-velocity-helper.h.