Constructor
new AnimationMixer()
Methods
addAction(action)
Add an action to this mixer.
Parameters:
Name | Type | Description |
---|---|---|
action | t3d. | The action to add. |
getActions() → {Array.<t3d.AnimationAction>}
Get all actions.
Returns:
- Type:
- Array.<t3d.AnimationAction>
hasAction(action) → {Boolean}
Whether has this action.
Parameters:
Name | Type | Description |
---|---|---|
action | t3d. | The action. |
Returns:
- Type:
- Boolean
removeAction(action)
Remove an action from this mixer.
Parameters:
Name | Type | Description |
---|---|---|
action | t3d. | 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. |