Player won't stay on ground (3D)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By PelleS

I recently noticed my player object had decided to show itself in the middle of the sky, despite me placing it at the ground. I still don’t know how to get him down.

I have a simple script for movement (attached to player), but that hasn’t been changed since everything worked. The model file with its armature has location applied in Blender and is placed with feet at origin. I really appreciate any help you can give in order to get my player down from the skies.

Here is a Google Drive link to my project files in case it’s needed: Project files

:bust_in_silhouette: Reply From: gioele

The problem is the player collision shape.
It is a giant sphere that extends way below the player’s feet so when you play the game it is actually on ground but what is touching the ground is actually the big invisible sphere.

You should change the collision shape to a box or capsule and place/resize it so that it does not extend too much outside of the player mesh. Especially focus on the feet.

Moreover the collision box around the floor should not extend too much above the floor level for similar reasons.

Thank you! I thought the collision shape was the cube that showed up when I clicked on the CollisionShape object. The fact that it’s not is very confusing, but I’m glad you could sort it out.

PelleS | 2021-07-28 11:46