Question by
FrancescoDiTommasoSWCG · May 17, 2018 at 09:03 AM ·
navmeshobstaclenav meshnavagentpath-finding
NavMeshAgent freeze for a moment
Hi
I'm developing a top down shooter for mobile. Both player and enemies have NavMeshAgent component. The enemies' movements are managed by AI with setDestination and using a dedicated NavMeshSurface. The player is moved with a virtual joystick. The navMeshAgent is used only to avoid collision with the enemies.
In my level I have a door with a nav mesh obstacle and a button. If the player hit the button, a script activate an animation which move the door and clears the way for both playerof and enemies.
The problem is that, when the animation starts, if the player is too close to the door, he stops for a second and then restart.
Comment