Options
All
  • Public
  • Public/Protected
  • All
Menu

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

see

https://doc.babylonjs.com/features/featuresDeepDive/animation/baked_texture_animations

since

5.0

Hierarchy

  • BakedVertexAnimationManager

Implements

Index

Constructors

Properties

animationParameters: Vector4

The animation parameters for the mesh. See setAnimationParameters()

isEnabled: boolean

Enable or disable the vertex animation manager

The vertex animation texture

time: number

The time counter, to pick the correct animation frame.

Methods

  • 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

  • Clone the current manager

    Returns BakedVertexAnimationManager

    a new BakedVertexAnimationManager

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

    Parameters

    Returns void

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

    Parameters

    • Optional forceDisposeTextures: boolean

      Forces the disposal of all textures.

    Returns void

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

    Returns string

    "BakedVertexAnimationManager"

  • 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

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

    Returns any

    • An object with the serialized instance.
  • 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
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme