Navmesh rotation and offset

Hi.
I’m trying to rotate and offset the navmesh on an Update() as my original mesh rotates and moves. The only way I found for this to work is to .Scan() all the time. Scan is a very expensive operation, so I wonder if there is a less computationally expensive way to do this. Thank you in advance.

Hi

You may be interested in the example scene called “Moving”.
See also Recast graph on a moving surface - A* Pathfinding Project

Hi Aron. The example looks great. At the moment I’m using AILerp on a spheric world with awesome results. AILerp has a clear advantage to me, as it doesn’t allow for some npcs to “fall” from the world when compared with a raycast script to move the agent. I see that this LocalSpaceRichAI rellies on a raycasted movement script. Is it possible for me to adapt LocalSpaceRichAI to use a AILerp script instead of the raycast one?

Hi

It’s not a straightforward modification, I’m afraid. It’s possible to write a custom AILerp movement script that does this, but you may have to override a lot of code to make it work for the AILerp script.