Unity3d Znajdź pozycję na Navmesh
private bool SetDestination(Vector3 targetDestination)
{
NavMeshHit hit;
if (NavMesh.SamplePosition(targetDestination, out hit, 1f, NavMesh.AllAreas))
{
agent.SetDestination(hit.position);
return true;
}
return false;
}
Crescent Fresh