|
wavelength 1.0.0
|
The animate_to action, which moves an animatable to a frame along a curve. More...
#include <animatetoaction.h>


Public Member Functions | |
| AnimateToAction (DataArray *pAction) | |
| Read the action. | |
| ~AnimateToAction () override | |
| Delete the curve. | |
| void | Exec () override |
| Fit the curve from the current frame and start the move. | |
| bool | Poll () override |
| Move the animatable to the frame of the curve for the time on the clock. | |
| Public Member Functions inherited from TriggerAction | |
| virtual | ~TriggerAction () |
| Release the action. | |
| void | Start () |
| Run the action now, or schedule it when it has a delay. | |
| float | GetDelay () const |
| void | SetDelay (float fDelay) |
| Set the time on the clock of the action before Exec() runs. | |
| int | GetClock () const |
| void | SetClock (int nClock) |
| Set the TriggerMgr::Clock the action runs on. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from TriggerAction | |
| static TriggerAction * | New (DataArray *pAction) |
| Build the action a node describes. | |
| Static Protected Member Functions inherited from TriggerAction | |
| template<class T> | |
| static T * | FindObject (DataArray *pAction, const char *pszName) |
| Find a renderer object of a class by name, warning when there is none. | |
The animate_to action, which moves an animatable to a frame along a curve.
The RTTI records the class as deriving from TriggerAction. The object is 0x28 bytes. Node 1 names the animatable, node 2 is the frame to move to, node 3 the time the move takes, and node 4 the curve, 0 for a line, 1 for an InvExpInterpolator, and 2 for an ATanInterpolator. The optional node 5 is the length of a looping animation, and the move then takes the shorter way round.
|
explicit |
Read the action.
| pAction | The node. |
|
override |
Delete the curve.
|
overridevirtual |
Fit the curve from the current frame and start the move.
Implements TriggerAction.
|
overridevirtual |
Move the animatable to the frame of the curve for the time on the clock.
Reimplemented from TriggerAction.