Answered

Two handed animations for gun

Anonymous 7 months ago updated by Peter - Soxware Developer 7 months ago 1

Could you give an overview of the workflow for creating a two handed weapon animation where the second hand should be parented to the weapon? I have tried simply parenting the second hand but as soon as I key the parent, the hand jumps out of position.

UMotion Version:
Unity Version:

Answer

Answer
Answered

Hi,
thank you very much for your support request.

If you create this animation only for a single character (and don't want to share the animation with other characters), I recommend using a "generic" rig setup instead of "humanoid". Animations of type generic have higher quality but can't be shared with other characters (except if they have precisely the same skeleton). More information about humanoid: https://blogs.unity3d.com/2014/05/26/mecanim-humanoids/

If you want to use humanoid, be aware that there might be some small offsets/differences when the animation is played in game due to the lossy nature of the animation re-targeting of the humanoid animation system (probably not noticeable for the player due to camera distance).

  1. Anyway, before you start with UMotion, make the gun a child of the right hand.
  2. Create a new UMotion project and drag the character to the Pose Editor.
  3. Switch into Config Mode and run the IK Setup wizard.
  4. Stay in Config Mode and select the IK handle of the left hand.
  5. Open the "Constraints" tab and disable "IK Pinning Mode" in the "Child-Of Constraint".
  6. Switch back into Pose Mode.
  7. Bring the left hand into the pose where it correctly grabs the weapon.
  8. When you have the left hand's IK handle selected, you can now set the axe as parent (see "Channels"). Key everything.
  9. Set "none" as parent when you want to switch into one handed mode.

I recommend watching the Child-Of video tutorial before using it. There are some common pitfalls you should be aware of.

Please let me know if you have any further questions.

Best regards,
Peter

Answer
Answered

Hi,
thank you very much for your support request.

If you create this animation only for a single character (and don't want to share the animation with other characters), I recommend using a "generic" rig setup instead of "humanoid". Animations of type generic have higher quality but can't be shared with other characters (except if they have precisely the same skeleton). More information about humanoid: https://blogs.unity3d.com/2014/05/26/mecanim-humanoids/

If you want to use humanoid, be aware that there might be some small offsets/differences when the animation is played in game due to the lossy nature of the animation re-targeting of the humanoid animation system (probably not noticeable for the player due to camera distance).

  1. Anyway, before you start with UMotion, make the gun a child of the right hand.
  2. Create a new UMotion project and drag the character to the Pose Editor.
  3. Switch into Config Mode and run the IK Setup wizard.
  4. Stay in Config Mode and select the IK handle of the left hand.
  5. Open the "Constraints" tab and disable "IK Pinning Mode" in the "Child-Of Constraint".
  6. Switch back into Pose Mode.
  7. Bring the left hand into the pose where it correctly grabs the weapon.
  8. When you have the left hand's IK handle selected, you can now set the axe as parent (see "Channels"). Key everything.
  9. Set "none" as parent when you want to switch into one handed mode.

I recommend watching the Child-Of video tutorial before using it. There are some common pitfalls you should be aware of.

Please let me know if you have any further questions.

Best regards,
Peter