AnimationTrackPlayback
AnimationTrackPlayback
Kind: global class
Properties
Name | Type | Description |
---|---|---|
track | AnimationTrack | |
position | number | Current playback time |
new AnimationTrackPlayback(track, updateCallback, [updateTarget])
Param | Type |
---|---|
track | AnimationTrack |
updateCallback | |
[updateTarget] | Object |
animationTrackPlayback.promiseEnded() ⇒ Promise.<void>
Kind: instance method of AnimationTrackPlayback
animationTrackPlayback.setLoop(v)
Kind: instance method of AnimationTrackPlayback
Param | Type |
---|---|
v | boolean |
animationTrackPlayback.setPosition(time)
Kind: instance method of AnimationTrackPlayback
Param | Type |
---|---|
time | number |
animationTrackPlayback.advanceKey() ⇒ boolean
Kind: instance method of AnimationTrackPlayback
Returns: boolean
- Indicated whenever or not a key was advanced, no advancement is possible past end of the sequence
animationTrackPlayback.advance(timeDelta)
Advance animation by given time delta
Kind: instance method of AnimationTrackPlayback
Param | Type |
---|---|
timeDelta | number |
animationTrackPlayback.readCurrentValues(result)
Kind: instance method of AnimationTrackPlayback
Param | Type |
---|---|
result | Array.<number> |