> For the complete documentation index, see [llms.txt](https://simons-assets.gitbook.io/playable-vehicle-ai-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simons-assets.gitbook.io/playable-vehicle-ai-documentation/priority-stop.md).

# Priority Stop

Each waypoint can automatically add a **Priority Stop** by checking the **Is Priority Stop** parameter (disabled by default)

Then, you will probably have to move and/or rotate the waypoint to match your environment.

The **Priority Stop** contains two raycasts. A yellow one at 45 deg to the right and a red one at 45 deg to the left.

**The principle is as follows:**

When a car arrives at the **Priority Stop**, the raycasts intercept the passage of the cars first on the yellow raycast, then on the red raycast.

**The yellow activates the collider which stops the car, the red deactivates it.**

<figure><img src="https://2610139454-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7MP8g62RDn4oRKfNbmqL%2Fuploads%2FT6xlqjzpYViFTM67Yvtw%2FPriority-Stop.gif?alt=media&amp;token=dbebdcfd-93d5-46f8-9138-27c4a4184f0f" alt=""><figcaption></figcaption></figure>
