make trajectory draw line on landing point
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user