Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MorphTargetManager

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

see

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

Hierarchy

  • MorphTargetManager

Index

Constructors

constructor

  • Creates a new MorphTargetManager

    Parameters

    Returns MorphTargetManager

Properties

enableNormalMorphingSearch playground for enableNormalMorphing

enableNormalMorphing: boolean

Gets or sets a boolean indicating if normals must be morphed

enableTangentMorphingSearch playground for enableTangentMorphing

enableTangentMorphing: boolean

Gets or sets a boolean indicating if tangents must be morphed

enableUVMorphingSearch playground for enableUVMorphing

enableUVMorphing: boolean

Gets or sets a boolean indicating if UV must be morphed

Accessors

influences

  • get influences(): Float32Array
  • Gets the list of influences (one per target)

    Returns Float32Array

numInfluencers

  • get numInfluencers(): number
  • Gets the number of influencers (ie. the number of targets with influences > 0)

    Returns number

numTargets

  • get numTargets(): number
  • Gets the number of targets stored in this manager

    Returns number

supportsNormals

  • get supportsNormals(): boolean
  • Gets a boolean indicating if this manager supports morphing of normals

    Returns boolean

supportsTangents

  • get supportsTangents(): boolean
  • Gets a boolean indicating if this manager supports morphing of tangents

    Returns boolean

supportsUVs

  • get supportsUVs(): boolean
  • Gets a boolean indicating if this manager supports morphing of texture coordinates

    Returns boolean

uniqueId

  • get uniqueId(): number
  • Gets the unique ID of this manager

    Returns number

vertexCount

  • get vertexCount(): number
  • Gets the number of vertices handled by this manager

    Returns number

Methods

addTargetSearch playground for addTarget

  • Add a new target to this manager

    Parameters

    Returns void

cloneSearch playground for clone

  • Clone the current manager

    Returns MorphTargetManager

    a new MorphTargetManager

getActiveTargetSearch playground for getActiveTarget

  • 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

getTargetSearch playground for getTarget

  • Gets the target at specified index

    Parameters

    • index: number

      defines the index to check

    Returns MorphTarget

    the requested target

removeTargetSearch playground for removeTarget

  • Removes a target from the manager

    Parameters

    Returns void

serializeSearch playground for serialize

  • serialize(): any
  • Serializes the current manager into a Serialization object

    Returns any

    the serialized object

synchronizeSearch playground for synchronize

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

    Returns void

Static ParseSearch playground for Parse

  • 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

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method