Complex Shapes with Simple Colliders

Simon Pham
Nov 24, 2023

--

We’ve completed all the tasks for our basketball event; now let’s move on to the third one, which is shooting.

The first thing that we need to do is add an XR Grab Interactable component to our gun which will allow us to grab it, and this will automatically add a Rigidbody component to our gun.

Next, let’s create a Box Collider for our handle and barrel.

After that, open a new slot under the Colliders property and drop the handle collider in. We don’t need to do this for the barrel, as we shouldn’t be grabbing the gun by the barrel anyway.

And we can now grab the gun by its handle.

--

--

No responses yet