Nav Mesh expands away from each other after disable + enabling the script.

Hi,

When my nav mesh stops to attack it gets pushed by other nav meshes which was annoying, so I made them into obstacles when standing still. Works great!

Now the problem is when their target is dead they all try to move (I re-enable the navmesh script and disable nav mesh obstacle) and they “expand” and appear to teleport.

Here is the behavior:

I can solve it by disabling collision radius on the nav mesh but that creates more issues.

Ideas?

Since no one ever seems to know the answers to my questions because I’m awesome and only ask impossible questions I’ll leave the solution here for the future brave men and women that successful Google search this thread.

If the Nav Mesh and Obstacle are on at the same frame it causes some problems so have it happen in separate frames.

1 Like