Skip to content

Drop a shelf item on a signal

Updated

Items hung on a pegboard are fixed scenery with only a Box Collider; on shelf/shake, the script adds a dynamic Rigid Body to each one, and they fall.

Press Shake the shelf to make every item fall. Drag to orbit the camera, scroll to zoom.

Drop a shelf item on a signal

The script is explained step by step in Drop a shelf item on a signal.

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.

ShelfShake.xrproj