Class BakedVertexAnimationManagerSince
Implements
Constructors
constructor
-
Creates a new BakedVertexAnimationManager
Returns BakedVertexAnimationManager
Properties
animation Parameters
The animation parameters for the mesh. See setAnimationParameters()
time
The time counter, to pick the correct animation frame.
Accessors
is Enabled
Enable or disable the vertex animation manager
texture
The vertex animation texture
Methods
bind
-
Binds to the effect.
Parameters
- effect: Effect
The effect to bind to.
- useInstances: boolean = false
True when it's an instance.
Returns void
- effect: Effect
clone
copy To
-
Makes a duplicate of the current instance into another one.
Parameters
- vatMap: BakedVertexAnimationManager
define the instance where to copy the info
Returns void
- vatMap: BakedVertexAnimationManager
dispose
-
Disposes the resources of the manager.
Parameters
OptionalforceDisposeTextures: booleanForces the disposal of all textures.
Returns void
get Class Name
-
Get the current class name useful for serialization or dynamic coding.
Returns string
"BakedVertexAnimationManager"
parse
-
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
- source: any
serialize
-
Serializes this vertex animation instance
Returns any
- An object with the serialized instance.
set Animation Parameters
-
setAnimationParameters(
startFrame: number,
endFrame: number,
offset?: number,
speedFramesPerSecond?: number,
): voidSets animation parameters.
Parameters
- startFrame: number
The first frame of the animation.
- endFrame: number
The last frame of the animation.
- offset: number = 0
The offset when starting the animation.
- speedFramesPerSecond: number = 30
The frame rate.
Returns void
- startFrame: number
This class is used to animate meshes using a baked vertex animation texture
See
https://doc.babylonjs.com/features/featuresDeepDive/animation/baked_texture_animations 5.0