Search Unity

Animator stops rotation of player

Discussion in '2D' started by BerryBoii, Mar 16, 2019.

  1. BerryBoii

    BerryBoii

    Joined:
    Mar 5, 2019
    Posts:
    1
    Hey guys, i'm new to unity and would love some help on this!

    When in the air I want my car to rotate, and on the ground I want him to move left and right. I use AddTorque to the wheels to make the car drive, and AddTorque to the body to make it rotate.

    When I added animations for other moves, I noticed the idle animation allows the character to move left, right and jump, but the rotation doesn't apply.

    The idle animation has nothing in it, no effects, nothing.

    I turned the animator off and it works fine, but I would love to know how to fix the rotation!

    Thanks so much!!