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

<animationpath>.getDistanceAtTime

Get the distance traveled at the specified time

<animationpath>.getDistanceAtTime(  
time  
)  
time
Time, in seconds

Remarks

Return the total distance traveled at the specified time in the animation path. The distance is dependent on the control point position/times, loop mode, and constant speed setting. The current speed factor (<animationpath>.setSpeed) is ignored.

Return Value

Distance

See also

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