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

<animationpath>.getTimeAtDistance

Get the time at the specified distance along the path

<animationpath>.getTimeAtDistance(  
distance  
)  
distance
Distance along the path

Remarks

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

Return Value

Time, in seconds

See also

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