Found a solution https://github.com/Unity-Technologies/NavMeshComponents
Is it possible to rebake Navmesh surface during runtime?
All this is in 3D and top down view. I have a circular flat platform with bunch of NavMesh agents wandering on top of it. The situation is that the circular platform shrinks overtime but the baked NavMesh stays the same, so this results in a weird behavior where the agents keep wandering like normal even though there is no platform under them after the platform has shrunk.
I tried looking for a way to rebake the NavMesh at runtime so the agents could adapt to the shrinking platform instead of wandering the initial full size platform. I have tried adding a wall around the circular platform in attempt to stop them but they keep phasing through it(Yes they have rigidbodies and colliders). I'm using 5.6.3 version of Unity and would really love some assistance.
Thank you.
In order for the wall to work you must add Nav$$anonymous$$eshObstacle component into your wall / walls and use the "CARVE" option. Then this wall WILL affect the Nav$$anonymous$$esh, and block your characters from trying to go where they shouldnt.
Follow this Question
Related Questions
Need help with Nav Mesh Agent getting "stuck" at high speeds 0 Answers
Navmesh agent Auto Braking resets transform rotation after reaching destination 0 Answers
Networked movement using navmesh agent 0 Answers
Navmesh Agent - The Y Next Position & Y Velocity does not update if there is no X velocity. 0 Answers
error in motion navmesh 0 Answers