cancel
Showing results for 
Search instead for 
Did you mean: 

The distance grab can detect objects through walls. How can I prevent this from happening?

ShadowyMerlin1551
Honored Guest

How can I prevent this from happening?

ShadowyMerlin1551_0-1741978203065.png

 

4 REPLIES 4

gavin_prior
Protege

Does your wall have a box collider attached?

Yes, I have a box collider attached, and I updated it to version 74; however, the issue persisted.

ShadowyMerlin1551_0-1742219353157.png

 

gavin_prior
Protege

I've had a quick test and can't figure it out either sorry.

I found this which you've probably seen already:

https://developers.meta.com/horizon/blog/distance-grab-sample-now-available-in-oculus-unity-sample-f...

It mentions walls in the bottom section but I can't see any reference that is relevant to the current setup in the distance grab example scene. 

I think that one might have been deprecated since it dates back to 2017. I found a comment in DistanceHandGrabInteractor.cs stating:

"The DistanceHandGrabInteractor uses see cref='DistantCandidateComputer{TInteractor, TInteractable}'/> to detect far-away interactables." to detect far-away interactables."

So, I suspect the relevant logic might be in DistantCandidateComputer.cs (DistantPointDetectorFrustums.cs), but I couldn't find anything related to detection blocking.