Search Unity

Bug Animating the rotatation of the child object will override the rotation of the parent object

Discussion in 'Animation' started by Misterkuuul, Dec 30, 2023.

  1. Misterkuuul

    Misterkuuul

    Joined:
    Feb 11, 2021
    Posts:
    8
    Hi Everybody!

    I have a problem with my animations. I have a simple reloading animation where I change the rotation of the gun. But sadly this does also override the rotation of the player's parent.

    Is there a way where I can only change the rotation of the gun and not the player's parent? Because of what I have seen this should be completely possible, so I don't know what is going wrong.

    My Unity version: 2022.3.8f1

    https://imgur.com/a/CpXdldN


    The image shows how the player is locked to the 90 degrees of the gun animation. Without the animation I could look around, but not anymore.

    Edit: Fixed, my Animator Controller had all the parents in it and not the child, yet somehow it could still animate the child. It was a weird bug, I fixed it by simply deleting the animations and animator controller and starting over again.
     
    Last edited: Jan 1, 2024