Skip to content

Set off a shock wave where something explodes

Updated

Click a barrel and it disappears in a shock wave that ripples across the screen from where it stood: a Shock Wave effect on the camera, played by a Behavior script from Selectable clicks.

Click the barrels one by one. Reload to bring them back. Drag to orbit the camera, scroll to zoom.

Set off a shock wave where something explodes

The script is explained step by step in Set off a shock wave where something explodes.

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.

BarrelShockWave.xrproj