new MorphPose()
Methods
-
clone()
-
Creates a copy of this MorphPose object
-
getMorphTargetName()
-
Gets the morph target name at the given index. The targets are sorted by importance.
-
getWeight(name)
-
Gets the weight of a morph target with the given name.
Parameters:
Name Type Description name
string The name of the morph target.
Returns:
- Type
- number
-
setWeight(name, value)
-
Sets the weight of a morph target with the given name.
Parameters:
Name Type Description name
string The name of the morph target.
value
number The new weight.
-
update()
-
Updates the morph pose given the current weights. Usually called by a wrapping component. If no component is used, update needs to be called manually.