Search Unity

Question Apply root motion not working on rotations?

Discussion in 'Animation' started by SassyPantsy, Mar 20, 2021.

  1. SassyPantsy

    SassyPantsy

    Joined:
    May 17, 2020
    Posts:
    142
    Hi all,
    I've been trying to change my character controller to be based on the animations' root motion. Currently, the position of the animated player gets updated, but not it's rotation. When previewing the animations with unity's model, the model itself gets rotated accordingly, yet the player isn't.

    I thought this was a thing with the rigidbody, because it is set to freeze X and Z rotations, but it's not: if I un-freeze the rotation, the player will not be affected by the root motion at all, not it's position, and not it's rotation.

    In terms of what activates the animations themselves, well it's simply an "if button press then play animation" because I'm just testing it.

    Thanks!