let segmented road generator take specific angles and lengths for segments

This commit is contained in:
Pim Nelissen
2026-03-02 13:00:14 +01:00
parent 8e429fe636
commit bb781ed082
5 changed files with 48 additions and 79 deletions

View File

@ -15,17 +15,10 @@ class RuntimeSpec:
@dataclass
class SimulationOptionsSpec:
air_density: float = 1.243
air_density: float
seed: int | None = None
@dataclass
class SegmentSpec:
type: str
length: float
angle: float | None
@dataclass
class PathSpec(ABC):
pass
@ -33,8 +26,11 @@ class PathSpec(ABC):
@dataclass
class ProceduralPathSpec(PathSpec):
segments: list[SegmentSpec]
segments: list[str]
angles: list[float]
lengths: list[int | None]
z: int | float
alpha: float
@dataclass