Skip to main content

AnimationTrackPlayback

AnimationTrackPlayback

Kind: global class
Properties

NameTypeDescription
trackAnimationTrack
positionnumberCurrent playback time

new AnimationTrackPlayback(track, updateCallback, [updateTarget])

ParamType
trackAnimationTrack
updateCallback
[updateTarget]Object

animationTrackPlayback.promiseEnded() ⇒ Promise.<void>

Kind: instance method of AnimationTrackPlayback

animationTrackPlayback.setLoop(v)

Kind: instance method of AnimationTrackPlayback

ParamType
vboolean

animationTrackPlayback.setPosition(time)

Kind: instance method of AnimationTrackPlayback

ParamType
timenumber

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

ParamType
timeDeltanumber

animationTrackPlayback.readCurrentValues(result)

Kind: instance method of AnimationTrackPlayback

ParamType
resultArray.<number>