InterpolatedFloatChannel

InterpolatedFloatChannel

An animation source channel consisting of float value samples. These samples are interpolated between key frames. Potential uses for
this channel include extracting and using forward motion from walk animations, animating colors or texture coordinates, etc.

Constructor

new InterpolatedFloatChannel(channelName, times, values, blendType)

Parameters:
Name Type Description
channelName string

the name of this channel.

times Array.<number>

the time samples

values Array.<number>

our value samples. Entries may be null. Should have as many entries as the times array.

blendType string

Methods

getData(index, storeopt) → {Array.<number>}

Apply a specific index of this channel to a TransformData object.

Parameters:
Name Type Attributes Description
index number

the index to grab.

store Array.<number> <optional>

the TransformData to store in. If null, a new one is created.