AnimatedModel Module
Pure update functions for AnimatedModel.
Mirrors the 2D AnimatedSprite module. Each function returns a new
AnimatedModel. Playback delegates to Animation3DState;
bone computation happens at draw time, not here.
Functions and values
| Function or value |
Description
|
Full Usage:
blendTo clipName duration am
Parameters:
string
duration : float32
am : AnimatedModel
Returns: AnimatedModel
|
Start blending toward a target animation.
|
Full Usage:
create model mesh clips clipName fps
Parameters:
Model
-
The MonoGame model (meshes/textures).
mesh : AnimatedMesh voption
-
Shared skeleton data (ValueNone for a boneless model).
clips : Animation3DClips
-
Shared animation clip set (from IAssets.ModelAnimations).
clipName : string
-
The animation to start on (falls back to clip 0 if absent).
fps : float32
-
Playback speed in frames per second.
Returns: AnimatedModel
|
Create an animated model starting on the named clip.
|
|
|
|
Total duration of the current clip in seconds at the current speed.
|
|
|
|
|
Full Usage:
play clipName am
Parameters:
string
am : AnimatedModel
Returns: AnimatedModel
|
Play an animation by name. Resets the frame if switching clips.
|
Full Usage:
playByIndex clipIndex am
Parameters:
int
am : AnimatedModel
Returns: AnimatedModel
|
Play by clip index (zero string allocation).
|
Full Usage:
playIfNot clipName am
Parameters:
string
am : AnimatedModel
Returns: AnimatedModel
|
|
|
|
Full Usage:
update deltaSeconds am
Parameters:
float32
am : AnimatedModel
Returns: AnimatedModel
|
Advance playback by delta seconds. Pure; returns a new state.
|
Full Usage:
withLoop loop am
Parameters:
bool
am : AnimatedModel
Returns: AnimatedModel
Modifiers: inline |
|
Full Usage:
withSpeed speed am
Parameters:
float32
am : AnimatedModel
Returns: AnimatedModel
Modifiers: inline |
Mibo