fix player hovering 1px above vertical moving platform

This commit is contained in:
Haze Weathers 2024-03-12 17:49:25 -04:00
parent 9914542ffe
commit 0b00c9ff4a

View file

@ -487,6 +487,7 @@ func _process_gravity(delta: float) -> void:
## called after all other physics things
func _process_movement(delta: float) -> void:
# apply velocity and react to collisions
velocity.y += get_floor_velocity().y
velocity = move_and_slide_with_snap(velocity, snap, Vector2.UP)
# deal with that STUPID landing exactly on corner bug