Determine the Grab Attach Point

Tyler Smallwood
2 min readNov 30, 2023

--

Objective: Set the Grab Attach Points on grabbables.

Currently when we grab basketballs, our hands end up inside the ball and that is not how it works in the real life. Let’s fix it.

To fix this we need to make sure our controllers have Direct Interactors on them.

On the basketball under the Grab Interactable there are options for attach points.

There is Attach Transform, Secondary Transform, and Use Dynamic Attach. Attach Transform and Secondary Transform can be used for we specific points to grab an object. Say something like a Coffee cup, normally we’ll grab by the handle. You could set up a empty game object at the location and use it for Attach Tranform.

For something like a basketball we can use the “Use Dynamic Attach”. When it gets selected some options will appear. These option help the system to know where to grab and lock the object to the hands at. Using Dynamic Attach will use the collider of the object and attach to the hands at a point no matter where it gets grabbed from.

--

--

Tyler Smallwood

I am passonate on learning to program and use Unity to become a skillful Unity Developer