Floating Third Person Controller

I imported Third Person Controller from Unity Standard Assets package. The character initially walked on the ground. As I added more game objects and scripts to the game, the character started ‘floating’ above the ground as soon as I hit play. Its transform is 0, 0, 0 when the game is not in play mode. I have tried commenting out parts of code in the Third Person User Control and Third Person Character scripts, and fiddling with the collider, but can’t track down the root cause.

@eee2016 Did you had navmesh agents and navmesh? Because I had the same issue.
When you bake the navmesh make sure to tick the “Height Mesh” box in the “advanced” options in bake panel.
If you don’t do that, you’ll see that the blue layer on the ground is floating above the ground and so are all your navmeshagents.

Set Check ground distance to 1 or more. If you have added more objects to the game, or character, Layers are messed up. If you have ragdoll, make sure ragdoll colliders are on separate layer, different from player controller collider.

Check the ground check distance, the one in the prefab is set to 0.3 but the variable is set to 0.1 in the script which causes the character to constantly think it is falling.