How change the destination point if it is inside an obstacle?
Hello! I will be glad if someone helps me. I have a randomly generated plane with a NV. Units move chaotically across the plane. They get the size of the plane from the MapGenerator and move inside it. If you click on a plane a cube appears. This cube is an obstacle for units. If the destination point to which the unit goes is in the center of the tile on which the obstacle stands, then the unit bumps into the obstacle and stops. This happens because the method that generates the next destination point is triggered when the unit reaches the current point, but it cannot reach it.
Thank you!
Your answer
Follow this Question
Related Questions
How to do parpendicular movement of agent using Navigation (NavMesh)? 0 Answers
AI chase/follow problem 0 Answers
How to make the AI use the grid 1 Answer
using Navmesh or ML Agent ?! 0 Answers
[NAVMESH] Door Destroy NavMesh Problem 0 Answers