module

Traffic

Constants

CameraSpeed = 1000.0_f32
CameraZoomInMax = 2.0_f32
CameraZoomOutMax = 0.25_f32
IntersectionSize = 2 * TileSize
Lane1 = (5_f32 / Segments) * TileSize
Lane2 = (12_f32 / Segments) * TileSize
Lane3 = (20_f32 / Segments) * TileSize
Lane4 = (27_f32 / Segments) * TileSize
Lanes = 2
LaneSegments = 8

Lane center offsets from road start (Proportional to TileSize) Tile 1: 0.25 and 0.75 | Tile 2: 1.25 and 1.75

LookAheadDist = 0.15_f32 * TileSize
PriorityTimeToDestination = 60_f32
PriorityWaitTime = 2.seconds
Segments = Lanes * LaneSegments
SignalCheckDist = 0.25_f32 * TileSize
SpawnPriorityVehicleAmbulanceVsPoliceRatio = 0.60_f32
SpawnPriorityVehicleChance = 0.1_f32
SpawnVehicleRatio = 0.15_f32
SwitchZoneDist = 2.5_f32 * TileSize
ThresholdTurn = 0.125_f32 * TileSize

Trigger/Detection Thresholds

TileSize = 128.0_f32
VehicleSpawnIntervalMax = 2.0_f32
VehicleSpawnIntervalMin = 0.5_f32

Nested types