ManagedTransformSource

ManagedTransformSource

This tree source maintains its own source data, which can be modified directly using instance functions. This source is meant to be used for
controlling a particular joint or set of joints programmatically.

Constructor

new ManagedTransformSource(sourceNameopt)

Parameters:
Name Type Attributes Description
sourceName string <optional>

Name of source we were initialized from, if given.

Methods

clone() → {ManagedTransformSource}

getRotation(channelName, storeopt)

Gets rotation from the local transformdata for a given channelName. The channel has to be an instance of TransformChannel

Parameters:
Name Type Attributes Description
channelName string
store Quaternion <optional>

to store the result in

getScale(channelName, storeopt) → {Vector3}

Gets the scale from the local transformdata for a given channelName. The channel has to be an instance of TransformChannel

Parameters:
Name Type Attributes Description
channelName string
store Vector3 <optional>

to store the result in

getTranslation(channelName, storeopt)

Gets the translation of the local transformdata for a given channelName. The channel has to be an instance of TransformChannel

Parameters:
Name Type Attributes Description
channelName string
store Vector3 <optional>

to store the result in

initFromClip(clip, filter, channelNames)

Setup transform data for specific joints on this source, using the first frame from a given clip.

Parameters:
Name Type Description
clip AnimationClip

the animation clip to pull data from

filter Array.<string>
channelNames Array.<String>

setRotation(channelName, rotation)

Sets a rotation to the local transformdata for a given channelName. The channel has to be an instance of TransformChannel

Parameters:
Name Type Description
channelName string
rotation Quaternion

the rotation to set

setScale(channelName, scale)

Sets a scale to the local transformdata for a given channelName. The channel has to be an instance of TransformChannel

Parameters:
Name Type Description
channelName string
scale Vector3

the scale to set

setTranslation(channelName, translation)

Sets a translation to the local transformdata for a given channelName. The channel has to be an instance of TransformChannel

Parameters:
Name Type Description
channelName string
translation Vector3

the translation to set