Vizard 8 » Command Index » Vizard objects » animationpath » <animationpath>.setRotateMode
8.0

<animationpath>.setRotateMode

The interpolation mode for rotations

<animationpath>.setRotateMode(  
mode  
)  
mode
Can be one of the following values:

Interpolation Modes

viz.LINEAR

Interpolate linearly between control points.

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.

Remarks

This will set the interpolation mode for rotations. The default is viz.LINEAR. If a control point within the path has a rotation mode other than viz.INHERIT then the path will use that mode while it is leaving that point.

Return Value

None

Example

path = viz.addAnimationPath()
path.setRotateMode(viz.CUBIC_BEZIER)

See also

<animationpath>.setAutoRotate
<animationpath>.setScaleMode
<animationpath>.setTranslateMode
<controlpoint>.setRotateMode