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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Nav Mesh Agent Find Stopping Distance

Discussion in 'Navigation' started by JeevanjotSingh, Jun 20, 2015.

  1. JeevanjotSingh


    Apr 30, 2014
    Hello Everybody , It's like a problem adding a trigger to player so when enemy gets into that then it will play attack animation , but what if it will make a little distance like player is walking and enemy is following and in a very short distance it's getting a problem like trigger in/out every short time and the enemy is never playing single animation simultaneously, Enemy is like playing half run and half attack animation , That's why i need help to know how to write code about - if enemy will reach stoping distance in nav mesh agent built-in function ,then it will play attack animation . please make it simple , thanks .