Search Unity

using root motion from the animation without looping back to start

Discussion in 'Animation' started by steveh2112, Mar 3, 2020.

  1. steveh2112

    steveh2112

    Joined:
    Aug 30, 2015
    Posts:
    314
    i am writing an AI system for NPCs and want to use animation root motion vs. moving with rigidbody.MovePosition, maybe that's a bad idea?

    anyhow, if i set root transform position xz in the animation, it moves but then loops back at the end which is not what, i want for walking, running, etc

    any ideas how to keep it moving?

    thx
     
    Last edited: Mar 3, 2020