diff --git a/raylib/raylib.go b/raylib/raylib.go index fa7f817..935709a 100644 --- a/raylib/raylib.go +++ b/raylib/raylib.go @@ -937,6 +937,12 @@ func (m ModelAnimation) GetBones() []BoneInfo { return unsafe.Slice(m.Bones, m.BoneCount) } +// GetFramePose returns the Transform for a specific bone at a specific frame +func (m ModelAnimation) GetFramePose(frame, bone int) Transform { + framePoses := unsafe.Slice(m.FramePoses, m.FrameCount) + return unsafe.Slice(framePoses[frame], m.BoneCount)[bone] +} + // RayCollision type - ray hit information type RayCollision struct { Hit bool