Skip to main content
New Participant
March 14, 2025

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

How can I prevent this from happening?

 

    This topic has been closed for replies.

    4 replies

    Inspiring
    March 17, 2025

    Does your wall have a box collider attached?

    New Participant
    March 17, 2025

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

     

    Inspiring
    March 17, 2025

    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-framework/?locale=pt_BR

    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. 

    New Participant
    March 18, 2025

    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.