Constructor that sets up the vehicle manager instance
Scene access point
Loaded models
Routes that cars can take
the junction configuration
Optionalcfg: Partial<SimConfig>Simulation config options
Returns the controller for a junction object
ID of the junction object
Either an intersection or roundabout controller ot neither if not exists
Returns a world-space position that lies distance metres ahead of
vehicle v along its route. Returns null when the route is too
short or the vehicle has no route points.
the vehicle instance
distance ahead in world units
the computed position vector
Return the latest simulation statistics snapshot, computing it lazily if needed.
the aggregated statistics snapshot
Returns a specific vehicle class via ID
ID of vehicle to find
The Vehicle class instance
Returns all vehicles active for raycasting (double click feature)
An array of all active vehicles
Resets the simulation back to the beginning ready to be played again
Main update loop of the simulation, handles all car movements.
Time delta — change in time since last call
The refs of junction objects for controller construction
Allows simulation config changes to be reflected in simulation
New config
Core simulation engine. Owns all active vehicles, manages route assignment, IDM car-following, traffic-light/roundabout entry logic, and per-tick updates.