new MorphAnimation( [targets])
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
targets |
Array |
<optional> |
An Array of |
- See:
Properties:
Name | Type | Description |
---|---|---|
numMorphTargets |
number | The amount of morph targets in total (active and non-active). |
Extends
Members
-
entity
-
The target entity.
- Inherited From:
Methods
-
getMorphTarget(index)
-
Retrieves the morph target at the given index, as sorted by weight.
Parameters:
Name Type Description index
Number The index of the morph target.
Returns:
- Type
- MorphTarget
-
setWeight(name, value)
-
Sets the weight of the morph target with the given name.
Parameters:
Name Type Description name
string The name of the morph target to influence.
value
number The new weight of the morph target.