Skip to main content

Class: MixerAnimationClip

Defined in: modules/engine/src/animation/scenegraph-animator.ts:104

A reusable clip controller backed by an engine mixer action.

Extends​

Constructors​

Constructor​

new MixerAnimationClip(clip, mixer?): MixerAnimationClip

Defined in: modules/engine/src/animation/scenegraph-animator.ts:106

Parameters​

clip​

AnimationClip

mixer?​

AnimationMixer = ...

Returns​

MixerAnimationClip

Overrides​

AnimationClipController.constructor

Properties​

action​

readonly action: AnimationAction

Defined in: modules/engine/src/animation/scenegraph-animator.ts:105


clip​

readonly clip: AnimationClip

Defined in: modules/engine/src/animation/scenegraph-animator.ts:107


mixer​

readonly mixer: AnimationMixer

Defined in: modules/engine/src/animation/scenegraph-animator.ts:108


name​

name: string

Defined in: modules/engine/src/animation/animator.ts:22

Application-visible clip name.

Inherited from​

AnimationClipController.name


playing​

playing: boolean = true

Defined in: modules/engine/src/animation/animator.ts:24

Whether playback is currently enabled.

Inherited from​

AnimationClipController.playing


speed​

speed: number = 1

Defined in: modules/engine/src/animation/animator.ts:26

Playback speed multiplier.

Inherited from​

AnimationClipController.speed


startTime​

startTime: number = 0

Defined in: modules/engine/src/animation/animator.ts:28

Start time in seconds relative to wall-clock playback time.

Inherited from​

AnimationClipController.startTime

Methods​

setTime()​

setTime(timeMs): void

Defined in: modules/engine/src/animation/animator.ts:36

Advances the clip to the supplied wall-clock time in milliseconds.

Parameters​

timeMs​

number

Returns​

void

Inherited from​

AnimationClipController.setTime