Character hovers over floor, don't know why


My cube character hovers over the floor for a reason I don’t understand. Is it a common problem that I have missed? It always seems to happen to me whatever code I use…

Thanks in advance


Is your cube character instantiated from a Prefab? If so, you probably need to adjust the Y-axis value of the character asset itself - not the prefab.

The character asset is a child of your character prefab, so you can make the necessary adjustment in the Hierarchy panel by drilling down from the prefab. Be sure to apply the change in the Inspector panel.

check if the character collider is bigger the the character


It was the character controller the radius and height were too big