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
Modifiers: inline |
Start blending toward a target animation.
|
Full Usage:
computePose am
Parameters:
AnimatedModel
Returns: BonePose voption
Modifiers: inline |
Evaluate the model's pose for the current frame: per-bone world
transforms plus the skinning palette.
Compute this once per instance per frame and share the result between
the skinned draw (
|
Full Usage:
computePoseInto am existing
Parameters:
AnimatedModel
existing : BonePose
Returns: BonePose voption
Modifiers: inline |
Compute the bone pose into caller-owned arrays (zero per-frame allocation
after the first call). Pass the previous frame's
|
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
Modifiers: inline |
Create an animated model starting on the named clip.
|
|
|
|
Total duration of the current clip in seconds at the current speed.
|
|
|
Full Usage:
isPlaying clipName am
Parameters:
string
am : AnimatedModel
Returns: bool
Modifiers: inline |
|
Full Usage:
play clipName am
Parameters:
string
am : AnimatedModel
Returns: AnimatedModel
Modifiers: inline |
Play an animation by name. Resets the frame if switching clips.
|
Full Usage:
playByIndex clipIndex am
Parameters:
int
am : AnimatedModel
Returns: AnimatedModel
Modifiers: inline |
Play by clip index (zero string allocation).
|
Full Usage:
playIfNot clipName am
Parameters:
string
am : AnimatedModel
Returns: AnimatedModel
Modifiers: inline |
|
|
|
Full Usage:
tryGetBoneWorld bone am
Parameters:
BoneRef
am : AnimatedModel
Returns: Matrix voption
Modifiers: inline |
Get the current model-space world transform of a bone, addressed by name
or index.
Convenience that recomputes the pose on every call. When several bones
are queried in the same frame, use
|
Full Usage:
update deltaSeconds am
Parameters:
float32
am : AnimatedModel
Returns: AnimatedModel
Modifiers: inline |
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