Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BakedVertexAnimationManager

This class is used to animate meshes using a baked vertex animation texture

see

https://doc.babylonjs.com/divingDeeper/animation/baked_texture_animations

since

5.0

Hierarchy

  • BakedVertexAnimationManager

Implements

Index

Constructors

constructor

Properties

animationParametersSearch playground for animationParameters

animationParameters: Vector4

The animation parameters for the mesh. See setAnimationParameters()

isEnabledSearch playground for isEnabled

isEnabled: boolean

Enable or disable the vertex animation manager

textureSearch playground for texture

The vertex animation texture

timeSearch playground for time

time: number

The time counter, to pick the correct animation frame.

Methods

bindSearch playground for bind

  • bind(effect: Effect, useInstances?: boolean): void
  • Binds to the effect.

    Parameters

    • effect: Effect

      The effect to bind to.

    • Optional useInstances: boolean

      True when it's an instance.

    Returns void

cloneSearch playground for clone

  • Clone the current manager

    Returns BakedVertexAnimationManager

    a new BakedVertexAnimationManager

copyToSearch playground for copyTo

  • Makes a duplicate of the current instance into another one.

    Parameters

    Returns void

disposeSearch playground for dispose

  • dispose(forceDisposeTextures?: boolean): void
  • Disposes the resources of the manager.

    Parameters

    • Optional forceDisposeTextures: boolean

      Forces the disposal of all textures.

    Returns void

getClassNameSearch playground for getClassName

  • getClassName(): string
  • Get the current class name useful for serialization or dynamic coding.

    Returns string

    "BakedVertexAnimationManager"

parseSearch playground for parse

  • parse(source: any, scene: Scene, rootUrl: string): void
  • Parses a vertex animation setting from a serialized object.

    Parameters

    • source: any

      Serialized object.

    • scene: Scene

      Defines the scene we are parsing for

    • rootUrl: string

      Defines the rootUrl to load from

    Returns void

serializeSearch playground for serialize

  • serialize(): any
  • Serializes this vertex animation instance

    Returns any

    • An object with the serialized instance.

setAnimationParametersSearch playground for setAnimationParameters

  • setAnimationParameters(startFrame: number, endFrame: number, offset?: number, speedFramesPerSecond?: number): void
  • Sets animation parameters.

    Parameters

    • startFrame: number

      The first frame of the animation.

    • endFrame: number

      The last frame of the animation.

    • Optional offset: number

      The offset when starting the animation.

    • Optional speedFramesPerSecond: number

      The frame rate.

    Returns void

Legend

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