Hi all. I'm using NavMeshAgent for all my units. for ground units it's working fine and they cannot walk on water and they are looking for a bridge. now I'm trying to implement air units which can fly over the river. I'm having a hard time since no matter which config I get the NavAgent nor the NavMesh I cannot seem to get it to work any ideas?
You can do it 2 ways, I guess. Create another navmesh for the flying unit where the river is not an obstacle or create a offmesh/ navmesh link across the river where only flying units can take.
A simpler solution is to make rivers impassable terrain by using NavMesh areas and marking the river as unpassable for your ground units. Then you make a new agent type for flying units, and make rivers passable for them. Simple as that.