- Home /
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.
I'm currently having this issue. Did you find a solution?
Answer by DavidSarre · Aug 16, 2017 at 12:50 PM
@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.
Thank you so m uch for this! I was trying for hours to figure out what was wrong. Once I rebaked my navmesh with height mesh everything was fine. : D
Answer by Eggtooth · Aug 16, 2017 at 12:51 PM
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.
Answer by felix_of_mars · Dec 29, 2016 at 01:14 PM
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.