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
|
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
|
// RayCollision type - ray hit information
|
||||||
type RayCollision struct {
|
type RayCollision struct {
|
||||||
Hit bool
|
Hit bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue