How to disable "far grab" in XR Interaction Toolkit 3.0?

I am experimenting with the XR Interaction Toolkit 3.0 sample scenes.

Currently I am trying to disable the “distance grab” option, where you can grab gameobjects just by pointing a ray at them. I want the user to only be able to grab the item by walking to the item first.

I included all the settings that could be related in these screenshots.
Can anyone point me in the right direction?



I found the following setting in the Controller > Near Far Interactor > Enable Far Casting.
If I disable this, then you cannot grab objects from far away.

The question remains how to disable “far grabbing” only for certain objects.

The Near-Far Interactor is split with different casters - sphere and curve caster.

Sphere caster used for near grabbing and curve caster is used for far grabbing.

Near grab for specific object:
Change the layer of object and then select the same layer in Physics layer mask in sphere interaction caster.

1 Like