theMightyAtom, Sr. Member Posted: 01 August 2011 10:07 AM Total Posts: 669
Is there any way to get the position and orientation of a single Bone, so that objects like a gun, or a pair of shoes could be added and removed from a skeleton animation dynamically?
What I’m looking for is a getBoneByName(“R_hand”) feature.
I’ve looked through all the skeleton classes, but am none the wiser.
Cheers!
theMightyAtom, Sr. Member Posted: 01 August 2011 01:29 PM Total Posts: 669
[ # 1 ]
..or failing that, just the position of a vertex by it’s index.
When you access the vertexData, you get back the position from the original pose and not the current position. I’ll keep digging!
theMightyAtom, Sr. Member Posted: 02 August 2011 09:13 AM Total Posts: 669
[ # 2 ]
I finally found a way of doing this.
Tutorial later
sebbdk, Jr. Member Posted: 02 August 2011 09:19 AM Total Posts: 39
[ # 3 ]
awesome looking forward to it, would like to know how to do this aswell :D
theMightyAtom, Sr. Member Posted: 02 August 2011 11:25 AM Total Posts: 669
[ # 4 ]
Once you know your bone hierarchy, it’s a one liner