Question by
SergioVasquez99 · 2 days ago ·
raycastnavmeshnavmeshagent
error in motion navmesh
the player object when looking for a route with the navmesh moves if to see given some click and when it is in the position marked with the click tries to find a route to a place that has already arrived as seen in the blue line
if (Input.GetMouseButtonDown(0))
{
RaycastHit hit;
if(Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hit))
{
agente.destination = hit.point;
}
}
Comment
Your answer
Follow this Question
Related Questions
how can I implement navmesh in this script? 0 Answers
Navmeshs and Trees 1 Answer
Navmeshing in AR 3 Answers
Navmesh agent enemy moving to players last seen position 0 Answers
Nav meshes in ECS/DOTS 0 Answers