Class: MorphPose

MorphPose

MorphPose defines a certain configuration for blending several morph targets. While this can be used to directly assign to a MeshInstance, it's usually controlled through a component such as {@MorphAnimation}. Other components could use several MorphPose objects in keyframes and tween between them over a timeline.


new MorphPose()

Author:
  • derschmale <http://www.derschmale.com>

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.