Source

Source

Class to use for animation sources. Base class - not supposed to be used directly.

Constructor

new Source()

Methods

clone() → {Source}

getSourceData()

isActive() → {boolean}

resetClips(globalStartTime)

Sets start time. If set to current time, clip is reset

Parameters:
Name Type Description
globalStartTime number

setStartTime(newStartTime)

Set the clip start time

Parameters:
Name Type Description
newStartTime number

the new start time for the source

setTime(globalTime) → {boolean}

Sets the current time and moves the AnimationClipInstance forward.

Parameters:
Name Type Description
globalTime number

setTimeScale(timeScale)

Sets the time scale for the source.

Parameters:
Name Type Description
timeScale number

shiftClipTime(shiftTime)

Parameters:
Name Type Description
shiftTime number