Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Upper body animations while moving?

Discussion in 'Animation' started by Chrisb3d, Mar 30, 2015.

  1. Chrisb3d

    Chrisb3d

    Joined:
    Apr 29, 2013
    Posts:
    4
    Has anyone had any luck on getting smooth upper body animations on a humanoid while moving? For example running and swinging a melee weapon or running and reloading a gun?

    I can get an upper body animation to play while moving but the problem is the avatar mask treats all of the spine bones as a single torso mask. So, as soon as you start playing the animation while moving the upper body starts wobbling because it's no longer counter animating the rotation of the hips/root.

    A feature that seems to be missing ( or that I can't find ). Is to be able to create a layered animation and then control weight values of each spine bone to blend the spine motion of running and w/e upper body anim you need. The feature is mostly there but the masking setup doesn't have enough detail.
     
  2. Yakkahboo

    Yakkahboo

    Joined:
    Mar 31, 2015
    Posts:
    3
    I'm not wholly adept at the system but within the animator you have access to animation layers where you can use an avatar mask to define affected areas and you can switch between having th animations override the layers below it or have the animation additive. You can also modify the weight of the layers here.

    I dont know if youve looked into this, but hopefully it can help you out.
     
    theANMATOR2b likes this.
  3. Void24

    Void24

    Joined:
    Oct 15, 2013
    Posts:
    50
    This may be a reason to consider using generic as your rig type instead of humanoid. My understanding is that it allows for much more precise masking.