AnimationAction
An instance schedules the playback of an animation stored in AnimationClip
Constructors
constructor
- new AnimationAction(
root: Object3D,
clip: AnimationClip,
ctx: ActionCtx,
mixer: AnimationMixer,
): AnimationActionParameters
- root: Object3D
- clip: AnimationClip
- ctx: ActionCtx
- mixer: AnimationMixer
Returns AnimationAction
Properties
Readonlyid
id: string
Action id = root.uuid@clip.name
Readonlyname
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.
pause When Finished
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
Methods
Staticcreate Id
Parameters
- root: Object3D
- clip: AnimationClip
Returns string
set Loop
reset
Reset action
Returns this
update
Parameters
- deltaTime: number
- accuIndex: number
Returns void
An instance schedules the playback of an animation stored in AnimationClip