Header menu logo Mibo

AnimatedMesh Module

Functions and values

Function or value Description

computeBoneMatrices clip frame mesh

Full Usage: computeBoneMatrices clip frame mesh

Parameters:
Returns: Matrix4x4[]

Compute bone matrices for a given animation clip and frame.

This is pure math — does not mutate the model. The result can be passed directly to DrawSkinnedMesh for GPU skinning. The algorithm matches raylib's UpdateModelAnimation: interpolates keyframes (lerp/slerp), builds TRS matrices, and multiplies by the inverse bind pose.

clip : ModelAnimation
frame : float32
mesh : AnimatedMesh
Returns: Matrix4x4[]

fromModel model

Full Usage: fromModel model

Parameters:
Returns: AnimatedMesh voption

Extract an AnimatedMesh from a loaded Model.

The model must have been loaded from a file that contains skeleton data (glb/gltf/iqm). Returns ValueNone if the model has no bones.

model : Model
Returns: AnimatedMesh voption

Type something to start searching.