Skip to content

Walk across a gap

Updated

A hero walks back and forth between two platforms that do not touch: a NavMesh Link across the gap lets its path continue, and the script logs when the agent leaves the ground to cross it.

Watch the hero jump the gap on each crossing. Drag to orbit the camera, scroll to zoom.

Walk across a gap

The script is explained step by step in Walk across a gap.

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.

JumpTheGap.xrproj