The interpolation mode for translations
| <animationpath>.setTranslateMode( | |
| mode |
)
mode
Can be one of the following values:
Interpolation Modes |
|
viz.LINEAR |
Interpolate linearly between control points. |
viz.BEZIER |
Use bezier interpolation between control points. Note: Bezier interpolation guarantees that the path will go through the first and last control point, but not the control points in between. Control times are ignored with bezier interpolation. They are only used to order the control points. To give a control point more weight, add it multiple times to the path. |
viz.CUBIC_BEZIER |
Use cubic bezier interpolation. Cubic bezier uses the control points and their incoming and outgoing tangents to compute a smooth curve between them. This is normally only used with translations. |
This will set the interpolation mode for translations. The default is viz.LINEAR. If a control point within the path has a translation mode other than viz.INHERIT then the path will use that mode while it is leaving that point.
None
<animationpath>.setRotateMode
<animationpath>.setScaleMode
<controlpoint>.setTranslateMode