AnimationClipInstance

AnimationClipInstance

Maintains state information about an instance of a specific animation clip, such as time scaling applied, active flag, start time of the
instance, etc.

Constructor

new AnimationClipInstance(worldopt)

Parameters:
Name Type Attributes Description
world World <optional>

the sumerian world this clip belongs to

Methods

getApplyTo(channel) → {TransformData|TriggerData|Array.<number>}

Gives the corresponding data for a channel, to apply animations to

Parameters:
Name Type Description
channel AbstractAnimationChannel

setTimeScale(scale, globalTimeopt)

Sets the timescale of the animation, speeding it up or slowing it down

Parameters:
Name Type Attributes Default Description
scale number
globalTime number <optional>
this._world.time