Traffic Public

Traffic vehicles following public transport routes and picking up passengers at stop station nodes.

Youtube tutorial.

How To Create

  1. Create a vehicle by following these steps.

  2. Set traffic group to Public Transport in the TrafficCarEntityAuthoring component.

  3. Add TrafficPublicAuthoring and CarCapacity to the created vehicle.

  4. Tick on Predefined Road if public transport is to be routed via TrafficPublicRoute. [Optional step]

  5. Create an empty child GameObject, add the VehicleEntryAuthoring component and assign it to the CarCapacity component.

  6. Position the created Entry GameObject where the pedestrian entrances/exits will be.

  7. Create the TrafficPublicRoute entity and set the CarModel according to created public transport vehicle. [Optional step]

Components

TrafficPublicAuthoring

Authoring component that contains settings for public transport.

_images/TrafficPublicAuthoring.png
Predefined Road : the vehicle will only be spawned on TrafficPublicRoute paths.
Min/Max idle time : min/max idle time at the public stop station.
Enter/exit delay duration : min/max delay between entrances to public transport.

Car capacity authoring

Authoring component that contains capacity settings of the vehicle.

_images/CarCapacityComponent.png
Max capacity : max capacity of the vehicle.
Entry point : any GameObject that contain VehicleEntryAuthoring component.
Show entry point : on/off display entry point.
_images/TrafficPublicTramExample.png

Public tram example (white box - entry point).

Note

At the moment the component is only used for TrafficPublic vehicles.