AnimationTrack
AnimationTrack
Represents animation of a meaningful multi-variate thing, such as 3d vector or single scalar
Kind: global class
- AnimationTrack
- instance
- .name :
string
- .path :
Array.<string>
- .curves :
Array.<AnimationCurve>
- .type :
string
- .start_time ⇒
number
- .end_time ⇒
number
- .duration ⇒
number
- .curve_count ⇒
number
- .isAnimationTrack :
boolean
- .sample(output, output_offset, time)
- .name :
- static
- instance
animationTrack.name : string
Human-readable label
Kind: instance property of AnimationTrack
animationTrack.path : Array.<string>
What property are we animating?
Kind: instance property of AnimationTrack
animationTrack.curves : Array.<AnimationCurve>
Kind: instance property of AnimationTrack
animationTrack.type : string
Special designator to help with interpolation For example, quaternion tracks will require sampled value to be normalized Based on this value, different bindings will be used
Kind: instance property of AnimationTrack
animationTrack.start_time ⇒ number
Kind: instance property of AnimationTrack
animationTrack.end_time ⇒ number
Kind: instance property of AnimationTrack
animationTrack.duration ⇒ number
Time duration of the longest curve, in seconds
Kind: instance property of AnimationTrack
animationTrack.curve_count ⇒ number
Kind: instance property of AnimationTrack
animationTrack.isAnimationTrack : boolean
Kind: instance property of AnimationTrack
Read only: true
animationTrack.sample(output, output_offset, time)
Kind: instance method of AnimationTrack
Param | Type |
---|---|
output | Array.<number> | Float32Array | Float64Array |
output_offset | number |
time | number |
AnimationTrack.from(curves, [name]) ⇒ AnimationTrack
Kind: static method of AnimationTrack
Param | Type |
---|---|
curves | Array.<AnimationCurve> |
[name] | string |