KinematicBody2D.is_on_floor()
returns false
when body is on the floor and moving parallel to the floor
#54975
Labels
Milestone
Godot version
3.4.stable
System information
Windows 7
Issue description
When a
KinematicBody2D
is on the floor (the collision shapes just "touch" each other) and it's not moving (velocity is zero) then after callingmove_and_slide()
it correctly reports that it's on the floor. When moving in parallel to the floor it reports it's not on the floor anymore. After stopping it correctly reports being on the floor again.In action:
Steps to reproduce
Place a
KinematicBody2D
on the floor so the collision shapes will just "touch" each other. Then move that body in parallel to the floor's surface.Minimal reproduction project
kb2d-is_on_floor-parallel-movement.zip
The text was updated successfully, but these errors were encountered: