new AnimationController
This controls animation by manipulating a Clock object.
Parameters:
| Name | Type | Description |
|---|---|---|
clock |
Clock | The clock that will be controlled. |
See:
Methods
-
faster
-
Speed up the animation, so time appears to pass more quickly.
-
isAnimating
-
Test if the AnimationController is playing or paused.
Returns:
Booleantrueif the AnimationController is animating in either direction. -
pause
-
Stop animating, and hold on the current time.
-
play
-
Begin or resume animating in a forward direction.
-
playReverse
-
Begin or resume animating in a reverse direction.
-
reset
-
Stop animating, and reset the clock back to the start time.
-
slower
-
Slow down the speed of animation, so time appears to pass more slowly.
-
update
-
Update the clock to the appropriate animation time. This function should be called exactly once per animation frame, prior to updating any other objects that depend on the animation time.
Returns:
JulianDate The updated time if animating, orcurrentTimeif paused.
