MorphTargetManager

This class is used to deform meshes using morphing between different targets

see

http://doc.babylonjs.com/how_to/how_to_use_morphtargets

Hierarchy

  • MorphTargetManager

Index

Constructors

constructor

Find examples in Playground

Properties

influences

Find examples in Playground
influences: Float32Array

Gets the list of influences (one per target)

numInfluencers

Find examples in Playground
numInfluencers: number

Gets the number of influencers (ie. the number of targets with influences > 0)

numTargets

Find examples in Playground
numTargets: number

Gets the number of targets stored in this manager

supportsNormals

Find examples in Playground
supportsNormals: boolean

Gets a boolean indicating if this manager supports morphing of normals

supportsTangents

Find examples in Playground
supportsTangents: boolean

Gets a boolean indicating if this manager supports morphing of tangents

uniqueId

Find examples in Playground
uniqueId: number

Gets the unique ID of this manager

vertexCount

Find examples in Playground
vertexCount: number

Gets the number of vertices handled by this manager

Methods

addTarget

Find examples in Playground
  • Add a new target to this manager

    Parameters

    Returns void

getActiveTarget

Find examples in Playground
  • Gets the active target at specified index. An active target is a target with an influence > 0

    Parameters

    • index: number

      defines the index to check

    Returns MorphTarget

    the requested target

getTarget

Find examples in Playground
  • Gets the target at specified index

    Parameters

    • index: number

      defines the index to check

    Returns MorphTarget

    the requested target

removeTarget

Find examples in Playground
  • Removes a target from the manager

    Parameters

    Returns void

serialize

Find examples in Playground
  • serialize(): any
  • Serializes the current manager into a Serialization object

    Returns any

    the serialized object

synchronize

Find examples in Playground
  • synchronize(): void
  • Syncrhonize the targets with all the meshes using this morph target manager

    Returns void

Static Parse

Find examples in Playground
  • Creates a new MorphTargetManager from serialized data

    Parameters

    • serializationObject: any

      defines the serialized data

    • scene: Scene

      defines the hosting scene

    Returns MorphTargetManager

    the new MorphTargetManager

Generated using TypeDoc