Traffic Debug

How To Open

YouTube tutorial.

In the scene, select:

CityDebugger/TrafficDebugger/

Traffic Spawn Button Helper

Manually spawns a vehicle at the selected index.

_images/TrafficCarSpawnButtonHelper.png

Traffic Debugger

_images/TrafficCarDebugger.png
Enable debug : enables/disables traffic debugging.

Debugger Type

Default

_images/TrafficCarDebuggerExample.png

Target

Shows the current target position of the vehicle.

Approach speed

Shows the vehicle’s calculated approach speed.

State

Shows the current internal state of the vehicle.

Idle State

Shows the root cause of the vehicle’s idle state.

Target index

Shows the active target node index of the vehicle.

Path index

Shows the global path index of the vehicle.

Speed limit

Shows the current speed and speed limit of the vehicle.

_images/TrafficCarDebuggerSpeedLimitExample.png

Change lane

Visualizes the target lane change point along the lane.

Collision

Shows the detected collision contact normal and direction.

Obstacle

Shows the detected obstacle entity and reason type.

Obstacle reason types:
  • Undefined

  • DefaultPath : obstacle present along the current or next connected path.

  • NeighborPath : obstacle detected on a neighboring path originating from the same node.

  • JamCase_1 : car stops before entering an intersection to avoid gridlock.

  • FewChangeLaneCars : conflict caused by multiple cars changing lanes simultaneously.

  • ChangingLane : lead vehicle is actively changing into the current lane.

  • Intersect_1_TargetCarCloseToIntersectPoint : conflicting car is closer to the intersection crossing point.

  • Intersect_2_TargetCarCloseToIntersectPoint : conflicting car is already at the intersection point.

  • Intersect_3_OtherHasPriority : yielding to another vehicle with higher road priority.

  • Intersect_4_SamePriority : vehicles have equal priority; the car closer to the intersection proceeds first.

No target

Lists vehicles currently without an assigned destination node.

Settings

Text color : color of the in-scene debug labels.
Show obstacle info : highlights cars with active obstacles in red.
Show common info : displays entity IDs above vehicles.

Traffic Raycast Debugger

Visualizes the detection box volume of vehicles (Config).

_images/TrafficCarRaycastDebugger.png
Enable debug : enables/disables raycast volume visualization.

Example

_images/TrafficCarRaycastDebuggerExample.png

Traffic NpcObstacle Debugger

Visualizes the NPC calculation area and detected pedestrian obstacles.

_images/TrafficCarNpcObstacleDebugger.png
Enable debug : enables/disables visualization.
Area color : color of the NPC calculation bounding box.
Selected index : restricts debugging to a single entity index (-1 displays all).

Example

_images/TrafficCarNpcObstacleDebuggerExample.png

Traffic Public Debugger

Visualizes public transport route and schedule data.

_images/TrafficPublicDebugger.png
Enable debug : enables/disables visualization.
Text color : text label color.

Example

_images/TrafficPublicDebuggerExample.png

Traffic Light Debugger

Visualizes the active state of scene traffic light objects.

_images/TrafficLightDebugger.png