feat: draw track borders

This commit is contained in:
2025-10-18 01:43:40 +02:00
parent 6276f97cce
commit adb25e6ef6
2 changed files with 16 additions and 5 deletions

View File

@@ -41,9 +41,9 @@ class Track:
class RoadPoint:
def __init__(self, pos: Vec, direction: Vec, width: float) -> None:
def __init__(self, pos: Vec, normal: Vec, width: float) -> None:
self.pos: Vec = pos
self.direction: Vec = direction
self.normal: Vec = normal.normalized
self.width: float = width
@staticmethod