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.
this is my rig:
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?
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.
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)
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.
Take a look at this video tutorial that shows a solution and even explains what causes the jitter…
The link should take you right to the part where the creator of the series explains how you can change when the Cinemachine camera updates versus when the animator updates. The series is great for setting up a 3rd person controller using Cinemachine and Animation Rigging.
Unfortunately, it means changing the Update Mode on the animator to “Normal” which seems to soften the effect of root motion. I’m thinking about switching the update mode as needed (aiming vs not), but when I flip between “Normal” and “Animate Physics” from the inspector while testing, my IK points get weird. I’m hoping he comes up with more solutions later in the series. This is as far as I have gotten ATM.