Position of Object to NavMesh

I am having a problem with the enemies and player moving up on the Y position when going into PLAY mode. The NavMesh seems to sit higher than the terrain, which is causing the characters to “pop” up when starting the game. They appear to be running on air, just above the terrain. What is causing this, and how can I fix it?

Welcome to Unity! This happens all the time and I have not found a way anywhere to get this to not happen. What I usually do is to go into play mode, and then lower the model until its feet touches the ground. Then copy the transform and re-apply in edit mode. I never have the NavMeshAgent and model on the same game object - the model is always a child. It will push the model into the terrain a bit in edit mode, but at least it’s not levitating when I’m playing. It’s not great, but it’s what I have.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms