Skip to content

Tumble rocks with Convex Hull Colliders

Updated

Faceted rocks fall and tumble to rest on their flat faces: each Convex Hull Collider wraps its rock’s mesh, squashed or not, as tightly as a convex shape can. The script drops them again every few seconds.

Watch the rocks bounce off each other and settle on a face, never on a corner. Drag to orbit the camera, scroll to zoom.

Tumble rocks with Convex Hull Colliders

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.

ConvexRocks.xrproj