I am currently animating my character. He will be able to hold a number of different weapons, These weapons all have slightly different sizes so the way they are held in his hands differse; A rifle would be held different than a submachine gun, and so on.
What is the best method to make the character model hold these different weapon models?
The most straightforward approach would be to make a pose for each different weapon inside the 3D modelling program and import those.
I wonder if there’s a more flexible way inside the Unity editor?
When I tried parenting the character’s hands to the weapon model the arms just get stretched with no regard for the bone structure or joints.
I aplogise if this does not help but the only way I could think about doing it would be to rig your character (using bones, biped etc..) then placing an empty game object where the hand needs to be. With this you may be able to rotate it to the empty game objects position. (Maybe LookAt will work? I am not sure) But if you find this code I would love to know the answer :)
– slayer29179