ModelAnimation.GetBones() added #466
This commit is contained in:
parent
a9ad86d501
commit
98ce816ab8
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue