Forum Discussion

BwanaSamaki's avatar
BwanaSamaki
Explorer
28 days ago
Solved

Distance Hand Grab building block in Unity

I'm using the new distance hand grab building block with Grab Relative Too Hand set on import to my Unity project.

All works fine for objects close to hand but I need to grab an object further away and it seems to have a very limited distance range function.

The documentation suggests I can change the distance in the SelectrumFustrum function but I'm unable to find where that is.

Can anyone point me in the right direction please.

  • For hands, the above steps are very similar except the component you are looking for instead is "Distance Hand Grab Interactor", which should be parented under "Hand and No Controller" game object. 

6 Replies

  • Hi BwanaSamaki​ ! From your "Distance Grab Interactor" scene component, select "Distant Candidate Computer" -> "Detection Frustums" -> "Selection Frustum" component object. It contains the "Conical Frustum" component which you can adjust properties such as Min/Max Length, Radius Start, and Aperture Degrees. 

    I believe this is exactly what you are looking for - let us know if this helps! 😄

  • Hi BwanaSamaki​ ! From your "Distance Grab Interactor" scene component, select "Distant Candidate Computer" -> "Detection Frustums" -> "Selection Frustum" component object. It contains the "Conical Frustum" component which you can adjust properties such as Min/Max Length, Radius Start, and Aperture Degrees. 

    I believe this is exactly what you are looking for - let us know if this helps! 😄

    • BwanaSamaki's avatar
      BwanaSamaki
      Explorer

      Aha! Very helpful. Thank you. However I can only find the fustrum on the "Controller and no Hand" element. I've tried duplicating this and adding it to "Hand" and "Hand no Controller" but no luck so far.

      Any suggestions? Here's how my CameraRig building block looks. 

       

      • RayNg_XRBootcamp's avatar
        RayNg_XRBootcamp
        Protege

        For hands, the above steps are very similar except the component you are looking for instead is "Distance Hand Grab Interactor", which should be parented under "Hand and No Controller" game object. 

  • Finally found it 😀. Its actually hidden under Filtered Wrist Offset.

    Many thanks!

  • For anyone with this same issue note that I also had to extend the Head Fustrum when using Hands no Controllers

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions