> For the complete documentation index, see [llms.txt](https://gley.gitbook.io/mobile-traffic-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gley.gitbook.io/mobile-traffic-system/setup-guide/priority-crossing.md).

# Priority Crossing

A priority intersection is a pedestrian crossing that is not controlled by traffic lights. At a priority crossing, vehicles will slow down and continue through if there are no pedestrians on that crossing. Otherwise, they will stop and wait for pedestrians to pass.

To create a priority crossing go to **Settings Window -> Intersection Setup**

<figure><img src="https://1500817731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuflU4iIzTBjoLH93zTYD%2Fuploads%2Fns84oni9UyGLZ4JHMg1q%2Fimage_2024-03-06_110918201.png?alt=media&amp;token=d5c59329-b437-4d6e-878b-94d0a5bc2495" alt=""><figcaption></figcaption></figure>

If **Show All Intersections** is checked you will see the intersections from the entire scene. If unchecked, only the intersections visible in the scene view will be displayed. Using the **View**, **Edit,** and **Delete** buttons you can perform the respective operations on each intersection from that list.

Press **Create Priority Crossing** to create a new road crossing. This will open the Priority Crossing Setup Window.

<figure><img src="https://1500817731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuflU4iIzTBjoLH93zTYD%2Fuploads%2FBShJn3PwxP2rV7sHxbaM%2Fimage_2024-03-06_114653226.png?alt=media&amp;token=14e58467-37ff-4546-8693-c460dfd37bca" alt=""><figcaption></figcaption></figure>

**Hide Waypoints** - will hide the scene waypoints offering you the possibility to select different objects inside the scene.

To select the waypoints for the vehicles to stop press **Assign Road Waypoints.**&#x20;

Select the waypoints where you want cars to stop. Selected waypoints will be marked with red circles.

When the selection is finished, press the **Done** button.

<figure><img src="https://1500817731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuflU4iIzTBjoLH93zTYD%2Fuploads%2F8Hfcwar7uR4vpcV6SeXA%2Fimage_2024-03-06_114911988.png?alt=media&amp;token=c740bec2-2429-4cdb-be74-1bd5eac089e8" alt=""><figcaption></figcaption></figure>

You can add more waypoints by using the **Assign Road Waypoints** button.

You can delete a waypoint by using the **Delete** button.

Using the **View** buttons, you can focus the scene view on the selected waypoint.

To control the crossing based on your pedestrian behavior you can use the API[SetPriorityCrossingStopState](/mobile-traffic-system/complete-api/setprioritycrossingstopstate.md). Set the stop to true, and the vehicles will stop allowing the pedestrians to cross.
