Terrain changes position

Hi everybody,

I have an issue with the Terrain. If I create a new Terrain, and immediately hit the “Bake” button from the Navigation tab, everything is fine.

If i now set the Height to (e.g.) 196, flatten the whole Terrain and afterwards bake the terrain, it still looks ok in the design mode. As you can see, the position of the Terrain is 0,0,0.

Now i start the game and what happens? The Terrain is hoovering up to 0,196,0 and leaves the baked navmesh on the ground

This results in crazy error message during runtime, like

“SetDestination” can only be called on an active agent that has been placed on a NavMesh.
UnityEngine.NavMeshAgent:set_destination(Vector3)

which seems to be as at human is created way to far away from the created navmesh.

Can anybody help?

I don’t have a solution for it, but a workaround.

If one complete side of the terrain is flat (height == zero), the terrain will not move up, once you enter the game.

The minimum width of the side (which needs to be zero height) seems to be very unimportant - this is brush size 5.

Hope this helps somebody.

Hello, they have been able to solve this problem?, I tried to set the edges to zero, but my terrain keeps changing position