Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Limping character - navmesh speed problem

Discussion in 'Animation' started by imiotis, Jun 8, 2021.

  1. imiotis

    imiotis

    Joined:
    Dec 22, 2018
    Posts:
    32
    Hi there. Please, take a look at the gif. Agent position (green wireframe cylinder) drift away from the character. How do I keep them together?
    I can adjust the speed, however, as you can see, the character in the animation pauses after each pause, so this will cause it to slide.
    kScL5GS2sf.gif
     
  2. VishwasGagrani

    VishwasGagrani

    Joined:
    May 12, 2018
    Posts:
    81
    You will need to update cylinder's position as per the position of the animation's game object. That will only keep them together.