My character isn't colliding with the ground more than once

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By alibix
:warning: Old Version Published before Godot 3 was released.

I have a (Kinematic2D) character that starts out falling to the ground. It collides with the ground.

This character is in an FSM. When a Ray2D (placed under the character) collides with the ground it will switch from the “Falling” state to the “Grounded” state.

The ground is a StaticBody2D with a CollisionShape2D.

The character collides with the ground just fine when the game starts and the character falls to the ground. However, when the character jumps and falls back down to the ground it doesn’t collide with the ground even though it looks like it is when the game is running (the character doesn’t fall through the ground).

I am running is_colliding() and it gives me false when the character is clearly colliding with the ground on the screen after jumping and falling back down onto it.

Maybe you never returned to falling?

Add some breakpoints and check if your states are set correctly.

eons | 2017-06-27 13:09