0 votes
asked in General Help by
Hi there,

I've been having a hard time trying to figure how to best setup a system where a humanoid can hold an object (like a large axe) in two hands and also transition between one-handed and two-handed. I figure the object should be a child of the right hand/wrist to start with, but I'm not sure how to set up the left hand with IK/child of constraint so that it transitions to and from a two-handed hold.

Perhaps something that could be done in a tutorial sometime?

Thanks for your time,

Anders

1 Answer

0 votes
answered by Expert (80k points)
selected by
 
Best answer

Hi Anders,
thanks for your support request.

I figure the object should be a child of the right hand/wrist to start with

Yes that's correct.

but I'm not sure how to set up the left hand with IK/child of constraint so that it transitions to and from a two-handed hold.

  1. Switch into Config Mode and select the IK handle of the left hand.
  2. Open the "Constraints" tab and disable "IK Pinning Mode" in the "Child-Of Constraint".
  3. Switch back into Pose Mode
  4. Bring the left hand into the pose where it correctly grabbs the axe.
  5. When you have the left hand's IK handle selected, you can now set the axe as parent (see "Channels"). Key everything.
  6. Set "none" as parent when you want to switch into one handed mode.

I recommend watching the Child-Of video tutorials (click on "Window / UMotion Editor / Video Tutorials") before using it. There are some common pitfalls you should be aware of.

Let me know if you have any further questions.

Best regards,
Peter

commented by
edited
Fantastic, I already got it working. Thank you for the quick response! I'm halfway through the tutorials already.

One last quick question though, would it be possible to set the axe as parent for both hands and then use the location and rotation of the weapon to control the chain movement of the arms? Feels like that would make it much faster to set up correct animation movements in attack swings.

Once again thank you for your help.

Kind regards,

Anders
commented by Expert (80k points)

Great to here that you already got it working. 

One last quick question though, would it be possible to set the axe as parent for both hands and then use the location and rotation of the weapon to control the chain movement of the arms?

Sure, in that case I would also use the child-of constraint of the right IK handle for the parenting. In Unity (outside of UMotion), make the axe a child of the hips instead of the right hand.

Please let me know if you have any further questions.

Best regards,
Peter

Soxware Support

Here you get official product support by the developer and the community for all Soxware Products for Unity®.

Post as guest, login via Facebook or create an account.

Ask questions, report bugs or provide feedback. Please use the correct category and always post in english.

For private email support, please use the Support Form to create a support ticket.

Copyright © 2017 Soxware Interactive | All Rights Reserved | Impressum

...