Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines a target to use with MorphTargetManager

see

https://doc.babylonjs.com/features/featuresDeepDive/mesh/morphTargets

Hierarchy

  • MorphTarget

Implements

Index

Constructors

  • 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

animations: Animation[]

Gets or sets the list of animations

id: string

Gets or sets the id of the morph Target

name: string

defines the name of the target

onInfluenceChanged: Observable<boolean>

Observable raised when the influence changes

Accessors

  • get hasNormals(): boolean
  • Gets a boolean defining if the target contains normal data

    Returns boolean

  • get hasPositions(): boolean
  • Gets a boolean defining if the target contains position data

    Returns boolean

  • get hasTangents(): boolean
  • Gets a boolean defining if the target contains tangent data

    Returns boolean

  • get hasUVs(): boolean
  • Gets a boolean defining if the target contains texture coordinates data

    Returns boolean

  • get influence(): number
  • set influence(influence: number): void
  • 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 void

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

    Returns number

Methods

  • Clone the current target

    Returns MorphTarget

    a new MorphTarget

  • getClassName(): string
  • Returns the string "MorphTarget"

    Returns string

    "MorphTarget"

  • Gets the normal data stored in this target

    Returns Nullable<FloatArray>

    a FloatArray containing the normal data (or null if not present)

  • Gets the position data stored in this target

    Returns Nullable<FloatArray>

    a FloatArray containing the position data (or null if not present)

  • Gets the tangent data stored in this target

    Returns Nullable<FloatArray>

    a FloatArray containing the tangent data (or null if not present)

  • Gets the texture coordinates data stored in this target

    Returns Nullable<FloatArray>

    a FloatArray containing the texture coordinates data (or null if not present)

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

    Returns any

    the serialized object

  • Affects normal data to this target

    Parameters

    Returns void

  • Affects position data to this target

    Parameters

    Returns void

  • Affects tangent data to this target

    Parameters

    Returns void

  • Affects texture coordinates data to this target

    Parameters

    Returns void

  • 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

  • Creates a new target from serialized data

    Parameters

    • serializationObject: any

      defines the serialized data to use

    • Optional scene: Scene

      defines the hosting scene

    Returns MorphTarget

    a new MorphTarget

Legend

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

Settings

Theme