Traffic Debug

How To Open

Youtube tutorial.

On the scene select:

CityDebugger/TrafficDebugger/

Traffic Spawn Button Helper

For manual spawn of a car by the selected index.

_images/TrafficCarSpawnButtonHelper.png

Traffic Debugger

_images/TrafficCarDebugger.png
Enable debug : on/off debugger.

Debugger Type

Default

_images/TrafficCarDebuggerExample.png

Target

Shows the target position of the vehicle.

Approach speed

Shows the vehicle’s approach speed.

State

Shows the state of the vehicle.

Idle State

Shows the reason for the vehicle’s idle state.

Target index

Shows the target indexes of the vehicle.

Path index

Shows the global path index of the vehicle.

Speed limit

Shows the current speed and the speed limit of the vehicle.

_images/TrafficCarDebuggerSpeedLimitExample.png

Change lane

Shows the change lane point on the lane in the scene.

Collision

Shows the collision direction of the vehicle.

Obstacle

Shows the obstacle entity & obstacle reason type of the vehicle.

Obstacle reason type:
  • Undefined

  • DefaultPath : default obstacle in the current path or next connected path of the vehicle.

  • NeighborPath : obstacle on neighbouring paths, that starts from the current path.

  • JamCase_1 : the vehicle stays at the entrance of the crossroad & doesn’t enter to avoid traffic jams.

  • FewChangeLaneCars : obstacle when the current vehicle and the obstacle vehicle change lanes at the same time.

  • ChangingLane : the obstacle vehicle changes lanes to the lane of the current vehicle.

  • Intersect_1_TargetCarCloseToIntersectPoint : target obstacle vehicle too close to intersection of two paths (both vehicles are close, but the target vehicle is closer).

  • Intersect_2_TargetCarCloseToIntersectPoint : target obstacle vehicle too close to intersection of two paths (only target vehicle is too close).

  • Intersect_3_OtherHasPriority : vehicles meeting at an intersection of two paths have different priorities, with the higher priority vehicle passing first (unless the vehicle is too close to the intersection).

  • Intersect_4_SamePriority : vehicles that meet at an intersection of two paths have the same priority, whichever vehicle is closer to the intersection that passes first.

No target

Shows the list of vehicles without a destination.

Settings

Text color : colour of scene text UI.
Show obstacle info : display obstacles for vehicles (red color vehicle has obstacle).
Show common info : show the entity index of the vehicles.

Traffic Raycast Debugger

Shows the raycast box of the car. (Config) (info)

_images/TrafficCarRaycastDebugger.png
Enable debug : on/off debugger.

Example

_images/TrafficCarRaycastDebuggerExample.png

Traffic NpcObstacle Debugger

Shows the calculation area and the vehicle’s obstacle NPCs.

_images/TrafficCarNpcObstacleDebugger.png
Enable debug : on/off debugger.
Area color : colour of the area where the vehicle calculates the npc obstacles.
Selected index : only for this entity index will debug be enabled (-1 all entities).

Example

_images/TrafficCarNpcObstacleDebuggerExample.png

Traffic Public Debugger

Shows public transport traffic data.

_images/TrafficPublicDebugger.png
Enable debug : on/off debugger.
Text color : colour of scene text UI.

Example

_images/TrafficPublicDebuggerExample.png

Traffic Light Debugger

Shows the state of traffic light objects.

_images/TrafficLightDebugger.png