- Home /
Animation Aiming Layer direction
Hey guys, I am stuck on this issue, I have two layers in the Animator; one for movement and one for gun aiming. The movement layer alone works intended. However when I add the layer with the aiming animation, it seems to not by in the correct direction. The Aiming layer has a mask which only changes the upper body:
if the Ground (?) portion of the Avatar Mask is not select then the aiming animation will aim 45 degrees to the right.
if the Ground portion of the Avatar Mask is selected then the aiming animation is aiming the proper way but the walking animation is 45 degrees to the right. Changing the Root Transform Rotation seems to only rotate the entire character with the aiming difference in tact.
Both of these gifs are trying to walking directly upwards, and I am using Root Motion for the walking
Here is the Pistol Animation Settings:
Update: I enabled Foot IK on the movement base layer and it fixes his feet direction however now the knees and legs are very wrong. It looks like the legs are still 45 degrees to the right and are trying to catch up to the feet
Is is possible that your 'Aim' animation has an extra 45deg rotation on the 'Ground' bone? You can check by opening you animation in the animation window and looking for the corresponding row.
Otherwise, screenshots of the animation, the avatar mask and the layer setup would help understand.
I see there is a Quaternion on the root however deleting these doesn't seem to change anything (I assume the "Ground" bone is the Animator.Root??). I included a screenshot. (The angle difference turns out to be 25 degrees) These are my settings to achieve the most recent update: The Walking Layer:
Aiming:
Your answer
![](https://koobas.hobune.stream/wayback/20220613055515im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to combine animation control with custom script based control for NPCs and player to use doors. 0 Answers
Scriptable root motion? 1 Answer
Mixamo strafing animation moving slightly on the Z-Axis 0 Answers
Handling Build-up of Root Motion Errors Over Time 2 Answers
Trouble using root motion. 0 Answers