Skip to content

A moving platform

Updated

A kinematic platform slides back and forth with setKinematicTarget every frame, carrying the dynamic crates that rest on it.

Watch the platform carry the crates to and fro. Grab a crate and drop it back on. Drag elsewhere to orbit the camera.

A moving platform

The script is explained step by step in A moving platform.

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.

MovingPlatform.xrproj