Skip to content

Give an agent a route at runtime

Updated

A script turns three landmarks into a Steering Follow Path for a courier; at the last stop the Steering Agent sends arrive, and the round starts again five seconds later.

Watch the amber courier visit the bakery, the fountain and the library in order; at the library the log reports the round, and the next one starts after five seconds. Drag to orbit the camera, scroll to zoom.

Give an agent a route at runtime

The script is explained step by step in Give an agent a route at runtime.

Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.

DeliveryRoute.xrproj