AnimationAction

An instance schedules the playback of an animation stored in AnimationClip

Animation Class

An instance schedules the playback of an animation stored in AnimationClip

Constructors

Constructor

new AnimationAction(root, clip, ctx, mixer): AnimationAction

Parameters

root

Object3D

clip

AnimationClip

ctx

ActionCtx

mixer

AnimationMixer

Returns

AnimationAction

Properties

id

readonly id: string

Action id = [email protected]


name

readonly name: string

Name from AnimationClip


active

active: boolean

If set to true, the action is played. It will be automatically set to false when animation stops.


paused

paused: boolean

If set to true, the playback of the action is paused.


pauseWhenFinished

pauseWhenFinished: boolean

If set to true, the animation will be paused on its last frame. If set to false, the animation target will be reset to original state at the end.


weight

weight: number

The degree of influence of this action for blending with other actions


speed

speed: number

Weight factor for time, which can be set to negative.


time

time: number

local time for this action

Accessors

timeDuration

Get Signature

get timeDuration(): number

Return max time

Returns

number

Methods

createId()

static createId(root, clip): string

Parameters

root

Object3D

clip

AnimationClip

Returns

string


setLoop()

setLoop(mode, repetitions): this

Configures the loop settings for this action

Parameters

mode

Loop

Loop mode

repetitions

number

number of repetitions

Returns

this


reset()

reset(): this

Reset action

Returns

this


update()

update(deltaTime, accuIndex): void

Parameters

deltaTime

number

accuIndex

number

Returns

void