#include <lvt/Animator.h>
Inheritance diagram for Rotator:

Like a Rotation class, but continuously rotates over time. The speed of the rotation (controlled by Animator::SetSpeed()) is measured in degrees per second.
Public Member Functions | |
| bool | Animate (unsigned int deltaTime) |
| Increments the rotation. | |
| float | GetAngle () const |
| Returns the current angle of rotation. | |
| Vec | GetAxis () const |
| Returns the rotation axis. | |
| void | Render () |
| Rotates the scene graph. | |
| void | SetAngle (float a) |
| Sets the current angle of rotation. | |
| ~Rotator () | |
| Destructor. | |
| Rotator () | |
| Constructors. | |
| void | SetAxis (const Vec &v) |
| Sets the axis of rotation. | |
|
|
Constructors.
|
|
|
Destructor.
|
|
|
Increments the rotation. Increments the rotation angle by speed * (deltaTime / 1000) Implements Animator. |
|
|
Returns the current angle of rotation.
|
|
|
Returns the rotation axis.
|
|
|
Rotates the scene graph. Rotates the portion of the scene graph following the Rotator node by the node's current rotation amount. Implements Animator. |
|
|
Sets the current angle of rotation.
|
|
|
Sets the axis of rotation.
|
1.4.1