Constructor
new AnimationMixer()
Methods
addAction(action)
Add an action to this mixer.
Parameters:
Name | Type | Description |
---|---|---|
action | AnimationAction | The action to add. |
getActions() → {Array.<AnimationAction>}
Get all actions.
Returns:
- Type:
- Array.<AnimationAction>
hasAction(action) → {boolean}
Whether has this action.
Parameters:
Name | Type | Description |
---|---|---|
action | AnimationAction | The action. |
Returns:
- Type:
- boolean
removeAction(action)
Remove an action from this mixer.
Parameters:
Name | Type | Description |
---|---|---|
action | AnimationAction | The action to be removed. |
update(deltaTime)
Advances the global mixer time and updates the animation.
Parameters:
Name | Type | Description |
---|---|---|
deltaTime | number | The delta time in seconds. |