🚗
Playable Vehicle AI
🚗
Playable Vehicle AI
  • 🏡Home
  • ⭐Quick Start
  • 🚗Create cars
  • ↗️Waypoints
  • 🔀Waypoint Groups
  • ➕Spawn / Unspawn
  • 🚦Traffic Light
  • 🛑Priority Stop
  • 🚓Police
  • 👨‍🦱Player / Car Manager
  • 💥Integrations
  • 🆙Use in your code
  • Support
  • Discord
Powered by GitBook
On this page

Priority Stop

Last updated 4 months ago

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.

🛑