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