AnimationMixer
The class is a player for animations on a particular object called root
Hierarchy
- EventDispatcher
- AnimationMixer
Constructors
constructor
-
Constructor
Parameters
- root: Object3D
animation target.
- useCache: boolean
optional, default is true. By default, animationAction will be cached with root id and name when clipAction.
Returns AnimationMixer
Overrides EventDispatcher.constructor
- root: Object3D
Properties
_ uuid
Inherited from EventDispatcher._uuid
_ listeners
Inherited from EventDispatcher._listeners
Accessors
uuid
-
get uuid(): string
Returns string
Inherited from EventDispatcher.uuid
-
set uuid(uuid: string): void
Parameters
- uuid: string
Returns void
Inherited from EventDispatcher.uuid
Methods
clip Action
-
Generating AnimationAction from AnimationClip. Calling With the same clip name and root, it will always return the same action instance.
Parameters
- clip: AnimationClip
- root: Object3D
optional, default is the root of AnimationMixer. It is used for searching animation target.
Returns AnimationAction
update
-
Advance the mixer time and update animation
Parameters
- deltaTime: number
delta time in seconds
Returns void
- deltaTime: number
set Time
-
Set the mixer to a specific time and update animation
Parameters
- time: number
time in seconds
Returns void
- time: number
on
once
has
off
emit
-
Active the event and call the registered listener.
Parameters
- type: EventType<never>
Returns void
Inherited from EventDispatcher.emit
clear All Listeners
-
Removes all listeners from listening list.
Returns void
Inherited from EventDispatcher.clearAllListeners
The class is a player for animations on a particular object called root