Logo Mibo

AnimatedModel Module

Creation, pose evaluation, and bone queries for AnimatedModel.

Functions and values

Function or value Description

computePose am

Full Usage: computePose am

Parameters:
Returns: BonePose
Modifiers: inline

Evaluate the model's current pose once. Share the result between the skinned draw and any number of bone queries / attachment draws this frame.

am : AnimatedModel
Returns: BonePose

computePoseInto am existing

Full Usage: computePoseInto am existing

Parameters:
Returns: BonePose
Modifiers: inline

Compute the bone pose into caller-owned arrays (zero per-frame allocation after the first call). Pass the previous frame's BonePose (or BonePose.empty on the first call) — arrays are grown on demand and reused on subsequent calls.

am : AnimatedModel
existing : BonePose
Returns: BonePose

create mesh state

Full Usage: create mesh state

Parameters:
Returns: AnimatedModel
Modifiers: inline

Create an animated model from shared mesh data and a playback state.

mesh : AnimatedMesh
state : Animation3DState
Returns: AnimatedModel

tryGetBoneWorld bone am

Full Usage: tryGetBoneWorld bone am

Parameters:
Returns: Matrix4x4 voption
Modifiers: inline

Get the model-space world transform of a bone in the current frame. Returns ValueNone for unknown bones.

Recomputes the pose on every call — for multiple queries in one frame, call computePose once and use BonePose.worldAt / BonePose.tryGetWorld instead.

bone : BoneRef
am : AnimatedModel
Returns: Matrix4x4 voption

Type something to start searching.