So I need some advice on animation. I have a character with attachable parts like a backpack, gloves, helmet, etc. How do I go about animating this guy? Do I have to animate every combination of item or how should I do it? I want this to be simple and cant figure out the best way to quickly animate several animations and just add or remove parts.
Replies
In most engines you can modify this hierarchy dynamically, with programming. In Unity, for example, you retrieve the transform of the bone that you want an object to follow, and call the setParent method of this object with the bone transform as the argument.
You'll discover through experimentation that there are alignment matters to take into consideration, like Eric said.
In order to attach a sword to a hand, you first need to prepare a bone in that hand that will point in the direction you want the sword to point. Then you can parent the sword, which should have a null \ identity transform, to this attachment bone. Then when a "swing" animation plays, the sword will follow and tilt with the hand as if the character were holding it.
The benefit of this is that you can replace the sword with other objects, such as a bat, a wine bottle, a banana etc. and use the same swing animation for them all.