Search Unity

root motion + procedural rotation = unexpected behaviour

Discussion in 'Animation' started by savejais, Dec 15, 2021.

  1. savejais

    savejais

    Joined:
    Mar 6, 2020
    Posts:
    7
    I have animation that jumps forward lets say 2 units, apply root motion is checked on the animator window and everything works as expected, the movements gets updated to the transform of my object

    Now the issue starts when i incorporate rotation that so that my gameobject always points at target, ive tried transform.rotation, transform.rotate and transform.lookat
    As soon as i try to keep my gameobject always pointing at my target, the movement of my animation gets split in half, if i used to move 2 units, now its 1 unit, even if im moving towards target that im pointing to