Hello, my issue is very simple.
get_floor_angle straight up does not work
when i am on flat ground, it outputs 0.
when i am in the air or on a slope, it outputs 1,57079637050629.
I am using a regular rectangular collision box and a standard CharacterBody2D
Does anyone know why this is happening?
I am able to detect a slope with the get_floor_angle function. The docs say this
Returns the floor’s collision angle at the last collision point according to up_direction, which is Vector2.UP by default. This value is always positive and only valid after calling move_and_slide() and when is_on_floor() returns true.