Initialize
Description
Initializes the entire Traffic System by adding all the necessary components before starting the Traffic System.
This method should be called only once at the beginning of the scene.
Declaration
Supports multiple declarations based on the needs.
Parameters
activeCamera
Camera that follows the player or the player itself. Used to determine the line of sight for vehicle instantiations.
nrOfVehicles
The maximum number of traffic vehicles that can be active simultaneously. This value cannot be increased later during runtime.
vehiclePool
trafficOptions
activeCameras
Cameras that follow the players. Utilized in multiplayer scenarios.
Example
Initializing the Traffic System inside a scene.
Last updated