How to add collisions to the world?

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

Hello, I set a collition to the world/land but whenever I run the project the character is way above the land (when is set right on top) or simply falls into the infinite if I place it a bit under the land.
This is the land configuration

Land
StaticBody
CollisionShape

Using a convex static body generated automatically, I don’t know what I’m doing wrong, because it used to work fine until I added an outline mesh… deleted it, generated the collision again, but still cannot find what I’m doing wrong.

working on 3d, btw.

is your character a physics body(rigid/kinematic body) and has a collision shape on it? are you using the physics body specific commands(set_linear_velocity for rigid and move_and_slide/collide for kinematic) or do you set the position every frame?

rustyStriker | 2018-03-08 11:22

My character is a kinematic body, it has a collision shape.

Sorry, I’m a noob at godot, so I’m following this tutorial https://www.youtube.com/watch?v=-CudxS6EeNA&t=31s
I just add StaticBody collisions to the land/terrain and a CollisionShape (cube) for my kinematic character, but the character either positions WAY above the land, or falls, I tested putting the character over an asset (cactus with collision) and stands fine on it, the problem is the land.
This is my project file Desert map 1

I tried making a new project to see if I could find what the error is, but still have the problem :confused:

puppisama | 2018-03-08 19:42