Converting Our Basket Balls Objects Into Grabbable Objects In Unity XR

Maurice Davis
Apr 21, 2024

--

Picking up From where we left off, now that we have our hands along with the grip animations, we want to give ourselves the ability to grab the basketballs.

We only need to add two elements to our balls to set up the basketball.

First, we’ll add a sphere collider; second, we need to add an XR grab interactable component. This allows us to grab the object by default. Now, we have the ability to grab our basketballs with our ray cast trigger.

While this is clunky, the mechanics still work as intended.

--

--