Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Why does the accuracy of Navmesh Agent Path depend on Moving Object's Acceleration Value?

Discussion in 'Navigation' started by minoush82, Jun 19, 2022.

  1. minoush82

    minoush82

    Joined:
    Aug 24, 2021
    Posts:
    4
    I use Unity's Navmesh agent to govern the movement of my objects. I am observing a weird behaviour: increasing the acceleration of my object increases the accuracy of the path.

    For example, consider the following two objects:
    • Object 1 moves at a speed of 15 and acceleration of 30.
    • Object 2 moves at a speed of 15 and acceleration of 8.
    I instruct both objects to move to the same spot one at a time. Reaching the spot requires the object to make a left turn around a building.

    Object 1 reaches destination using a nice tight path while Object 2 makes a weird turn when trying to turn. I've captured these two in the attached GIF.

    Why is this happening?
     

    Attached Files: