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

NavmeshAgent Static Speed and Overshooting Help

Discussion in 'Scripting' started by UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396, Sep 15, 2020.

  1. UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    Joined:
    Jan 9, 2017
    Posts:
    151
    Question part 1: I'm creating a bot version of my player. My player (real) moves instantly at speed 5. No ramping up/down in speed which happens by default. How do I make my bots move at speed 5 instantly, thus ignore acceleration and no ramping up/down?

    Question part 2: My bots move along a number of waypoints in a path. But it always overshoots the waypoint. Is this normal? How to make it stick closely to the path?
     
  2. Terraya

    Terraya

    Joined:
    Mar 8, 2018
    Posts:
    646
    1.- you need to set your acceleration at a HIGH value so you wont notice the acceleration at the navMeshAgent
    2.- overshooting, im not sure if you mean "Auto Braking", you can turn it off at the NavMeshAgent in the Component