Skip to content

Break a weld on impact

Updated

A statue of three parts welded by a Fixed Joint stands as one object until a falling wrecking ball hits it faster than 6 m/s: the script then disables the joint and the parts fall apart.

Watch the ball drop onto the statue and break the weld. Press Relaunch to see it again. Drag to orbit the camera, scroll to zoom.

Break a weld on impact

The script is explained step by step in Break a weld on impact.

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.

BreakableStatue.xrproj