Width of finish line now adjustable in editor

This commit is contained in:
KingGurke 2023-10-01 15:57:53 +02:00
parent 2dcd561dbc
commit a72576bea6

View file

@ -46,7 +46,6 @@ func _ready():
finish.add_point(start + finish_right)
finish.add_point(start + finish_left)
# print_debug("start: ", start, "start out: ", start_out.normalized(), " finish left: ", start + start_out.normalized().rotated(90) * width/2, "start right: ", start + start_out.normalized().rotated(-90) * width/2)
finish.width = 20
player.position = start
player.rotation = start_out.angle()