|
Motive Animation System
An open source project by
FPL.
|
Parameters to specify how a spline should be traversed. More...
#include <compact_spline.h>
Parameters to specify how a spline should be traversed.
Public Member Functions | |
| SplinePlayback (float start_x=0.0f, bool repeat=false, float playback_rate=1.0f, float blend_x=0.0f, float y_offset=0.0f, float y_scale=1.0f) | |
Public Attributes | |
| float | start_x |
| The starting point from which to play. | |
| float | blend_x |
| float | playback_rate |
| float | y_offset |
| float | y_scale |
| bool | repeat |
| If true, start back at the beginning after we reach the end. | |
|
inlineexplicit |
Initialize all channels with same spline. Especially useful when kDimensions = 1, since there is only one channel.
| float motive::SplinePlayback::blend_x |
The point at which to be 100% in this spline. We create a smooth spline from the current state to the spline state that lasts for blend_x.
| float motive::SplinePlayback::playback_rate |
The playback rate of the spline. Scales delta_time of the update to to x-axis of splines. 0 ==> paused 0.5 ==> half speed (slow motion) 1 ==> authored speed 2 ==> double speed (fast forward)
| float motive::SplinePlayback::y_offset |
Offset that we add to spline to shift it along the y-axis. The spline is scaled first by y_scale, and then shifted by y_offset.
| float motive::SplinePlayback::y_scale |
Factor by which we scale the spline along the y-axis. The spline is scaled first by y_scale, and then shifted by y_offset.