Class: Animator<TClip>
Defined in: modules/engine/src/animation/animator.ts:51
Generic manager for a set of time-driven animation clips.
Extended by
Type Parameters
TClip
TClip extends AnimationClipController
Constructors
Constructor
new Animator<
TClip>(clips):Animator<TClip>
Defined in: modules/engine/src/animation/animator.ts:57
Parameters
clips
TClip[]
Returns
Animator<TClip>
Properties
animations
readonlyanimations:TClip[]
Defined in: modules/engine/src/animation/animator.ts:55
Compatibility alias for clip list.
clips
readonlyclips:TClip[]
Defined in: modules/engine/src/animation/animator.ts:53
Managed clip list.
Methods
animate()
animate(
timeMs):void
Defined in: modules/engine/src/animation/animator.ts:63
Parameters
timeMs
number
Returns
void
Deprecated
Use .setTime().
getAnimations()
getAnimations():
TClip[]
Defined in: modules/engine/src/animation/animator.ts:76
Returns the managed animation clips.
Returns
TClip[]
setTime()
setTime(
timeMs):void
Defined in: modules/engine/src/animation/animator.ts:71
Advances every clip to the supplied wall-clock time in milliseconds.
Parameters
timeMs
number
Returns
void