JointChannel

JointChannel

Transform animation channel, specifically geared towards describing the motion of skeleton joints.

Constructor

new JointChannel(jointIndex, jointName, times, rotations, translations, scales, blendType, additiveBaseRotationnullable, additiveBaseTranslationnullable, additiveBaseScalenullable)

Parameters:
Name Type Attributes Description
jointIndex number

our joint index

jointName string

our joint name.

times Array.<number>

our time offset values.

rotations Array.<number>

the rotations to set on this channel at each time offset.

translations Array.<number>

the translations to set on this channel at each time offset.

scales Array.<number>

the scales to set on this channel at each time offset.

blendType string
additiveBaseRotation Array.<number> <nullable>

Array[4] for the rotation quaternion of the additive base pose

additiveBaseTranslation Array.<number> <nullable>

Array[3] for the translation of the additive base pose

additiveBaseScale Array.<number> <nullable>

Array[3] for the scale of the additive base pose

Members

(static, readonly) JOINT_CHANNEL_NAME :string

Default Value:
  • '_jnt'

Methods

getData(index, storeopt) → {JointData}

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

Parameters:
Name Type Attributes Description
index number

the index to grab.

store JointData <optional>

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