Expand description
Utility library to play gltf animations.
This library is meant to be used together with rend3
and rend3-gltf
and
allows posing meshes according to the animation data stored in a gltf file.
In order to play animations, you need to:
- Create an
AnimationData
once when spawning your scene and store it. - Each simulation frame, use
pose_animation_frame
to set the mesh’s joints to a specific animation at a specific time.
For now, this library aims to be a simple utility abstraction. Updating the current state of the animation by changing the currently played animation or increasing the playback time should be handled in user code.
Structs§
- Caches animation data necessary to run
pose_animation_frame
. - Cached data structures per each of the Skins in a gltf model. This struct is part of
AnimationData
Traits§
- Helper trait that exposes a generic
lerp
function for variousglam
types
Functions§
- Sets the pose of the meshes at the given scene by using the animation at index
animation_index
at a giventime
. The provided time gets clamped to the valid range of times for the selected animation.