Constructor
new AnimationAction(clip)
Name | Type | Description |
---|---|---|
clip | KeyframeClip | The keyframe clip for this action. |
Extends
Members
blendMode :BLEND_TYPE
The blend mode for this action, currently only two values BLEND_TYPE.NORMAL and BLEND_TYPE.ADD are available.
- Default Value
- {BLEND_TYPE.NORMAL}
clip :KeyframeClip
The keyframe clip for this action.
time :number
The local time of this action (in seconds).
- number
weight :number
The degree of influence of this action (in the interval [0, 1]). Values can be used to blend between several actions.
- number
- Default Value
- 0
Methods
addEventListener(type, listener)
Adds a listener to an event type.
Name | Type | Description |
---|---|---|
type | string | The type of event to listen to. |
listener | function | The function that gets called when the event is fired. |
- Overrides
dispatchEvent(event)
Fire an event.
Name | Type | Description |
---|---|---|
event | object | The event that gets fired. |
- Overrides
removeEventListener(type, listener)
Removes a listener from an event type.
Name | Type | Description |
---|---|---|
type | string | The type of the listener that gets removed. |
listener | function | The listener function that gets removed. |
- Overrides
update(deltaTime)
Update time.
Name | Type | Description |
---|---|---|
deltaTime | number | The delta time in seconds. |