Class MorphTarget
Hierarchy
- MorphTarget
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Creates a new MorphTarget
Parameters
-
name: string
defines the name of the target
-
Optional influence: number
defines the influence to use
-
Optional scene: Nullable<Scene>
defines the scene the morphtarget belongs to
Returns MorphTarget
-
Properties
animationsSearch playground for animations
Gets or sets the list of animations
idSearch playground for id
Gets or sets the id of the morph Target
nameSearch playground for name
defines the name of the target
on Influence ChangedSearch playground for onInfluenceChanged
Observable raised when the influence changes
Accessors
animation Properties Override
-
Gets or sets the animation properties override
Returns Nullable<AnimationPropertiesOverride>
-
Gets or sets the animation properties override
Parameters
-
value: Nullable<AnimationPropertiesOverride>
Returns any
-
has Normals
-
Gets a boolean defining if the target contains normal data
Returns boolean
has Positions
-
Gets a boolean defining if the target contains position data
Returns boolean
has Tangents
-
Gets a boolean defining if the target contains tangent data
Returns boolean
hasUVs
-
Gets a boolean defining if the target contains texture coordinates data
Returns boolean
influence
-
Gets or sets the influence of this target (ie. its weight in the overall morphing)
Returns number
-
Gets or sets the influence of this target (ie. its weight in the overall morphing)
Parameters
-
influence: number
Returns any
-
unique Id
-
Gets the unique ID of this manager
Returns number
Methods
cloneSearch playground for clone
-
Clone the current target
Returns MorphTarget
a new MorphTarget
get Class NameSearch playground for getClassName
-
Returns the string "MorphTarget"
Returns string
"MorphTarget"
get NormalsSearch playground for getNormals
-
Gets the normal data stored in this target
Returns Nullable<FloatArray>
a FloatArray containing the normal data (or null if not present)
get PositionsSearch playground for getPositions
-
Gets the position data stored in this target
Returns Nullable<FloatArray>
a FloatArray containing the position data (or null if not present)
get TangentsSearch playground for getTangents
-
Gets the tangent data stored in this target
Returns Nullable<FloatArray>
a FloatArray containing the tangent data (or null if not present)
getUVsSearch playground for getUVs
-
Gets the texture coordinates data stored in this target
Returns Nullable<FloatArray>
a FloatArray containing the texture coordinates data (or null if not present)
serializeSearch playground for serialize
-
Serializes the current target into a Serialization object
Returns any
the serialized object
set NormalsSearch playground for setNormals
-
Affects normal data to this target
Parameters
-
data: Nullable<FloatArray>
defines the normal data to use
Returns void
-
set PositionsSearch playground for setPositions
-
Affects position data to this target
Parameters
-
data: Nullable<FloatArray>
defines the position data to use
Returns void
-
set TangentsSearch playground for setTangents
-
Affects tangent data to this target
Parameters
-
data: Nullable<FloatArray>
defines the tangent data to use
Returns void
-
setUVsSearch playground for setUVs
-
Affects texture coordinates data to this target
Parameters
-
data: Nullable<FloatArray>
defines the texture coordinates data to use
Returns void
-
Static From MeshSearch playground for FromMesh
-
Creates a MorphTarget from mesh data
Parameters
-
mesh: AbstractMesh
defines the source mesh
-
Optional name: string
defines the name to use for the new target
-
Optional influence: number
defines the influence to attach to the target
Returns MorphTarget
a new MorphTarget
-
Static ParseSearch playground for Parse
-
Creates a new target from serialized data
Parameters
-
serializationObject: any
defines the serialized data to use
Returns MorphTarget
a new MorphTarget
-
Defines a target to use with MorphTargetManager
https://doc.babylonjs.com/how_to/how_to_use_morphtargets