ModelAnimation.GetBones() added #466

This commit is contained in:
JupiterRider 2024-12-14 20:19:05 +01:00
parent a9ad86d501
commit 98ce816ab8

View file

@ -932,6 +932,11 @@ type ModelAnimation struct {
Name [32]int8
}
// GetBones returns the bones information (skeleton) of a ModelAnimation as go slice
func (m ModelAnimation) GetBones() []BoneInfo {
return unsafe.Slice(m.Bones, m.BoneCount)
}
// RayCollision type - ray hit information
type RayCollision struct {
Hit bool