- Home /
Question by
LukeThePunk666 · Oct 03, 2020 at 10:50 AM ·
script.navmeshnavmeshagentprocedural-terrain
Unwalkable nav mesh areas based on height map?
I'm using a randomly generated terrain and I want to prevent agents from pathfinding over mountains. Building a decent nav mesh normally takes way to long and cannot feasibly be done at runtime. Instead of doing this with max slopes and step heights I want to assign an area of the terrain mesh above a certain height as unwalkable; or, I want to simply not generate the nav mesh above a certain height. I have all the code in place to get these height floats and use them but I'm brand new to nav mesh/agent scripting. Does anyone have an idea of how I could make this work?
Comment