Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Animation rigging - Multi-Aim constraint jitter

Discussion in 'Animation Previews' started by FakeBocha, Apr 10, 2020.

  1. FakeBocha

    FakeBocha

    Joined:
    Aug 8, 2017
    Posts:
    23
    I'm using the Multi-Aim constraint to aim my weapon but for some reason, it jitters in a weird way.
    I use the Multi-Aim constraint to aim at the target and then I made a child object who controls the right-hand IK.

    https://imgur.com/hRxEpJ9

    this is my rig:
    https://imgur.com/QkXybvY


    I'm updating the player rotation in FixedUpdate and also the aim target at fixed update.

    Edit:
    If I change the rotation change method to be in Update - it fixes it, but it's not ideal for me... Is there any way around this?
     
    Last edited: Apr 10, 2020
  2. sinjinn

    sinjinn

    Joined:
    Mar 31, 2019
    Posts:
    94
    Hey, I probably wont be able to help as I'm just trying to learn AR myself, but just curious, did you make your own rig?
     
  3. FakeBocha

    FakeBocha

    Joined:
    Aug 8, 2017
    Posts:
    23
    Yes, why?
     
  4. simonbz

    simonbz

    Unity Technologies

    Joined:
    Sep 28, 2015
    Posts:
    158
    By default, the animation system evaluates with the game logic after the `Update` loop. To change this, you can change the Update Mode to `Animate Physics` on the Animator. This will evaluate the animation in fixed delta time and should allow you to sync with your script.
     
  5. FakeBocha

    FakeBocha

    Joined:
    Aug 8, 2017
    Posts:
    23
    Tried that - it didn't affect the jittering.

    I'll be more precise - I'm using aim constraint on the parent of the Right-hand target to make the hand aim at my target, but for some reason - it jitters. (I've changed it back to regular Update but it still does that)
     
  6. Maviekran

    Maviekran

    Joined:
    Dec 31, 2018
    Posts:
    2
    I have this problem. I need help too.
     
  7. planet22

    planet22

    Joined:
    Jul 30, 2019
    Posts:
    1
    Multi-aim worked fine until I turned off the x constrained axes, then the jitter started. I had to turn off the x axis constraint because the weapon would slowly rotate on the x (aim axis is -x) as I aimed the weapon that I moved around. Even with x axes disabled at random times -180 degrees gets put into the transform and rotates the weapon.
     
    Last edited: Jul 28, 2020
unityunity