Answer the question
In order to leave comments, you need to log in
What to do if MeshAgentPath.corners gives wrong coordinates?
I need to get the necessary points passing through the terrain, I get them like this
Vector3[] MeshCorners = new Vector3[]{};
MeshAgentPath = new NavMeshPath();
NavMesh.CalculatePath(TargetA.transform.position, TargetB.transform.position, NavMesh.AllAreas, MeshAgentPath);
if(MeshAgentPath.status == NavMeshPathStatus.PathComplete){
MeshCorners = MeshAgentPath.corners;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question