simvx.core.animation.skeletal

Skeletal animation: bone tracks and skeletal clips.

Module Contents

Classes

BoneTrack

Animation track for a single bone: position, rotation, scale keyframes.

SkeletalAnimationClip

Animation clip with bone tracks for skeletal animation.

API

class simvx.core.animation.skeletal.BoneTrack(bone_index: int)[source]

Animation track for a single bone: position, rotation, scale keyframes.

Rotation keyframes use quaternions [x, y, z, w] for spherical interpolation.

Initialization

sample(time: float) numpy.ndarray[source]

Interpolate keyframes at given time -> 4x4 local transform matrix.

class simvx.core.animation.skeletal.SkeletalAnimationClip(name: str, duration: float)[source]

Animation clip with bone tracks for skeletal animation.

Initialization

add_bone_track(track: simvx.core.animation.skeletal.BoneTrack) None[source]
evaluate(time: float) dict[int, numpy.ndarray][source]

Evaluate all bone tracks at given time.

Returns dict mapping bone_index -> 4x4 local transform.