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

<animationpath>.getDistanceAtControlPoint

Get the distance traveled at the specified control point

<animationpath>.getDistanceAtControlPoint(  
index  
)  
index
0-based index of the control point. Negative index can also be used to reference from end of list.

Remarks

Return the total distance traveled at the specified control point index in the animation path. The distance is dependent on the control point positions and interpolation mode. The current speed factor (<animationpath>.setSpeed) is ignored.

Return Value

Distance

See also

<animationpath>.getDistance
<animationpath>.getDistanceAtTime
<animationpath>.getDuration
<animationpath>.getTime
<animationpath>.setTime
<animationpath>.getMatrixAtTime
<animationpath>.getTimeAtDistance
<animationpath>.getTimeAtControlPoint