make trajectory draw line on landing point

This commit is contained in:
2025-08-22 14:59:37 +10:00
parent de81465d43
commit d0579c7832

View File

@@ -262,6 +262,11 @@ func _draw() -> void:
if is_hitting_floor:
is_on_floor = true
_draw_collision_hit(pos, SIDE_BOTTOM, _floor_hit_color)
draw_dashed_line(
pos + Vector2.LEFT * _player_size.x / 2,
pos + Vector2.RIGHT * _player_size.x / 2,
_floor_hit_color
)
if is_hitting_ceiling:
velocity.y = 0
draw_rect(