# API

- [AITrafficCar](https://simpletrafficsystem.turnthegameon.com/documentation/api/aitrafficcar.md): Primary component used on AITrafficCar prefabs, controlled by the AITrafficController.
- [AITrafficController](https://simpletrafficsystem.turnthegameon.com/documentation/api/aitrafficcontroller.md): Controls logic and movement for AITrafficCars using the Job System and Burst Compiler.
- [AITrafficLight](https://simpletrafficsystem.turnthegameon.com/documentation/api/aitrafficlight.md): The tutorial workflow has this component controlled by AITrafficLightManager, but you can also write your own scripts to control a light for a route.
- [AITrafficLightManager](https://simpletrafficsystem.turnthegameon.com/documentation/api/aitrafficlightmanager.md): Controls groups of AITrafficLights for an intersection.
- [AITrafficStop](https://simpletrafficsystem.turnthegameon.com/documentation/api/aitrafficstop.md): The tutorial workflow has this component controlled by AITrafficStopManager, but you can also write your own scripts to control a stop for a route.
- [AITrafficStopManager](https://simpletrafficsystem.turnthegameon.com/documentation/api/aitrafficstopmanager.md): Controls groups of AITrafficStops for an intersection.
- [AITrafficWaypoint](https://simpletrafficsystem.turnthegameon.com/documentation/api/aitrafficwaypoint.md): When the car reaches each waypoint, a variety of settings can be configured, like setting a new speed limit, stop driving, move to a new route, trigger custom events, and more.
- [AITrafficWaypointRoute](https://simpletrafficsystem.turnthegameon.com/documentation/api/aitrafficwaypointroute.md): Holds an array of waypoints used for path-finding, updating car settings, and triggering events.
- [AITrafficWaypointRouteInfo](https://simpletrafficsystem.turnthegameon.com/documentation/api/aitrafficwaypointrouteinfo.md): Controls if cars can exit route, or if yield trigger is active requiring cross traffic to stop.
- [SplineRouteCreator](https://simpletrafficsystem.turnthegameon.com/documentation/api/splineroutecreator.md): Generates multiple AI Traffic Waypoint Routes and their Waypoints along a spline.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://simpletrafficsystem.turnthegameon.com/documentation/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
