Animation
Animation
Wrapper around a native animation
Kind: global class
.duration ⇒ number
Kind: instance property of Animation
Returns: number - Duration of this animation
.trackCount ⇒ number
Kind: instance property of Animation
Returns: number - Number of tracks in this animation
.retarget (newTargets) ⇒ Animation
Clone this animation retargeted to a new set of objects.
The clone shares most of the data with the original and is therefore light-weight.
Experimental: This API might change in upcoming versions.
If retargetting to Skin, the join names will be used to determine a mapping from the previous skin to the new skin. The source skin will be retrieved from the first track in the animation that targets a joint.
Kind: instance method of Animation
Returns: Animation - The retargeted clone of this animation.
Param | Type | Description |
---|---|---|
newTargets | Array.<Object> | Skin | New targets per track. Expected to have trackCount elements or to be a Skin. |