# How object affect navmesh generation only for some agents

**URL:** <https://forums.unrealengine.com/t/how-object-affect-navmesh-generation-only-for-some-agents/470257>\
**Category:** World Creation\
**Tags:** Navigation, nav-agent, unreal-engine, navmesh, question\
**Created:** [August 24, 2020, 7:01pm UTC](https://forums.unrealengine.com/t/how-object-affect-navmesh-generation-only-for-some-agents/470257 "2020-08-24T19:01:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MasterChief\_UA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MasterChief\_UA](https://forums.unrealengine.com/u/MasterChief_UA)\
**Post date:** [August 24, 2020, 7:01pm UTC](https://forums.unrealengine.com/t/how-object-affect-navmesh-generation-only-for-some-agents/470257/1 "2020-08-24T19:01:35Z")

</div>

Hello unreal community,

I am making a game that has different characters (navigation agents) and depending on the type - one type can only walk and others can “hover” over terrain.

Here’s the scenario - a terrain that has rivers. For characters that can walk will descend into rivers, depending on the depth of the river. But hovering units should not descend but only hover.

River is a static mesh plane and the landscape has a sculpted indentation ( depth). But hovering units should not descend but to hover based on the river static mesh plane.

Im having hard time coming up with the way to generate different navigation meshes:  
&nbsp;- one that considered static mesh plane for characters that will hover over water  
&nbsp;- one that will not consider static mesh plane &nbsp;for regular characters that will descend into water

Screenshots:  
[https://drive.google.com/file/d/1FbnboGwku4c4WU7UW8NG9c9c67LZTlVt/view?usp=sharing](https://drive.google.com/file/d/1FbnboGwku4c4WU7UW8NG9c9c67LZTlVt/view?usp=sharing)  
[https://drive.google.com/file/d/1PY1UUSZIhVC8nEThPY4vghWccLr67a71/view?usp=sharing](https://drive.google.com/file/d/1PY1UUSZIhVC8nEThPY4vghWccLr67a71/view?usp=sharing)

PS: I would appreciate any help, maybe there’s a different approach but I have not found alternatives. I know about NavArea and NavFilter classes but I can’t see how I can use that here for nav mesh generation.
