#include <lvt/Animator.h>
Inheritance diagram for Shuttle:
A Shuttle moves a portion of a scene graph along a cyclic path specified by two or more waypoints.
Public Member Functions | |
bool | Animate (unsigned int deltaTime) |
Moves the shuttle along its circuit. | |
void | Clear () |
Removes all waypoints from the Shuttle's circuit, and stops the Shuttle. | |
void | EraseWaypoint (int n=-1) |
Removes a waypoint from the Shuttle's circuit. | |
void | Render () |
Renders the shuttle. | |
Shuttle () | |
Default constructor. | |
~Shuttle () | |
Destructor. | |
void | AddWaypoint (const Vec &v) |
Adds a waypoint to the Shuttle's circuit. |
|
Default constructor. Constructs a Shuttle with an empty circuit. |
|
Destructor.
|
|
Adds a waypoint to the Shuttle's circuit.
|
|
Moves the shuttle along its circuit.
Implements Animator. |
|
Removes all waypoints from the Shuttle's circuit, and stops the Shuttle.
|
|
Removes a waypoint from the Shuttle's circuit. Removes the nth waypoint from the Shuttle's circuit. If n is -1, the last waypoint in the circuit is removed. If the shuttle is currently heading towards the nth waypoint, it will immediately change course for the n+1th waypoint. |
|
Renders the shuttle. As with all Animators, nothing is actually drawn, but the modelview matrix is modified representing movement along the Shuttle's circuit. Implements Animator. |