Hello
This may seem like a highly dumb question about the animation framework …but where’s the getAttachmentNode(“boneName”) gone?
Google Code Archive - Long-term storage for Google Code Project Hosting.
Google Code Archive - Long-term storage for Google Code Project Hosting.
It’s mentioned in…
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:animation
Problem I’m actually trying to solve
Got an animated model with a chain of bones, and want the rotation of the last bone in the world …to be able to retrieve the world rotation.
private final Bone barrel;
…
final AnimControl animations = getRoot().getControl(AnimControl.class);
final Skeleton skeleton = animations.getSkeleton();
barrel = skeleton.getBone(“Barrel”);
barrel is the bone in the loaded model.
There are a number of getRotation style methods off it, however after tring them all (in all kinds of combinations) I’m not having any joy in getting the actual work rotation of that bone correctly.
Help would be greatly appreciated here
Thanks
Is this what you are looking for?
http://hub.jmonkeyengine.org/javadoc/com/jme3/animation/SkeletonControl.html#getAttachmentsNode(java.lang.String)
1 Like
Yes, that’s the badger!