Complex Shapes with Simple Colliders

--

Many game objects are not simple boxes, spheres, or capsules. This is how I set up colliders for these objects for interactions.

I will start with this revolver, add a box collider, and adjust it to fit the handle better.

The next step is to select the barrel, which is a child of the revolver, add another collider, and adjust this collider to fit the barrel.

The next step is adding an XR Grab Interactable component to the revolver. I also need to specify which collider the player should interact with. I can do this by adding the correct collider to the list of colliders.

Now the player can only interact with the collider on the handle and not the barrel. It is time to test it out.

Now it is your turn. Get out there and create some complex colliders for interactions!!!!

--

--