What is the best way to attach a spatial to an animated model so that it follows its animations? For example, how can I attach a gun to the hand of a running character so that it follows its hand? Previously I did this with [java]getSkeleton().getBone(“hand”).getAttachmentsNode().attachChild(gun);[/java], but in the newest version of the SDK this method is protected and I can’t use it anymore.
What is the best way to accomplish this?
Thanks.
[java]Node attachNode = skeletonControl.getAttachmentsNode("boneName");[/java]
1 Like
Perfect! Thanks!