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. Dismiss Notice

Question Align aiming with strafe animation

Discussion in 'Animation' started by MaPiDev, Jun 30, 2020.

  1. MaPiDev

    MaPiDev

    Joined:
    Aug 29, 2018
    Posts:
    21
    Hello,

    I am currently working on a Bow combat system. I have two Animator layers, one for locomotion and the other one handles the upper body aiming. The problem is that my locomotion animations (basically strafe fwd, bwd, left, right) tilt my aim animation so that it does not point forward anymore. I tried various combinations of Avatar Masks and animation baking. However, non worked. The pictures below show my current setup.

    Animation Setup
    Strafe Left Animation (same setup for aim animation)
    upload_2020-6-30_20-10-57.png
    Avatar Mask
    upload_2020-6-30_20-12-46.png
    Problem Illustration
    Strafe left
    upload_2020-6-30_20-7-16.png

    Aiming
    upload_2020-6-30_20-7-45.png
    Combined (should point forward)
    upload_2020-6-30_20-9-49.png

    I appreciate your help.
     
  2. MaPiDev

    MaPiDev

    Joined:
    Aug 29, 2018
    Posts:
    21
    bump:

    So no solutions to this? Shouldnt this be like a default use-case for Animation Layers?
     
  3. dibdab

    dibdab

    Joined:
    Jul 5, 2011
    Posts:
    976
    the root's rotation affects the upper body rotation, this is a drawback/sideeffect of using upperbody mask.
    might be not noticeable if the hip doesn't sway or swing during the animation.

    maybe using root node at feet position (not hip) could remedy this.
     
  4. thekrocker

    thekrocker

    Joined:
    Feb 4, 2021
    Posts:
    4
    Any solution to this? I have similar issue with weapon aiming & strafing same time.
     
  5. AAAAAAAAAE

    AAAAAAAAAE

    Joined:
    Jun 8, 2013
    Posts:
    90
    I believe u need to code Lookat for the spine and possibly head.