Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

No collision with spatial surface

Hello! I'm working with holotoolkit, hololens and unity. My problem is that my cursor is hiting in spatial surfaces always.
When I am placing one object, the spatial mapping is usefull because the object hit the surface and I can place it where I want in my world, but when the object is placed, sometimes, I have to select one object that is far away than a wall, and the cursor, hits in the wall, not letting me touch in the game object. How can I disable those surfaces collisions when I'm not placing anything?

Thank you so much!

Answers

  • timgtimg mod
    edited October 2016

    Hi @gomes,
    It sounds like you have an object that you are trying to select that is behind a real-world surface. How you handle that depends on the scenario your app is trying to accomplish.

    There are a couple of things off the top of my head you might try:
    1) You could modify GazeManager to do two Raycasts. The first would ignore the SpatialMapping.Instance.PhysicsRaycastMask layer. If that Raycast intersects with a hologram, position the cursor there. If it doesn't intersect with a hologram, then perform a second Raycast that does take SpatialMapping.Instance.PhysicsRaycastMask into account.
    2) Have a mode in your application to allow you to "rescue" objects behind a wall by attaching a Tagalong script to that object which would bring the object in front of any other holograms (including the wall). Once you are satisfied with its new placement, you can disable the Tagalong.

  • @gomes did you see this thread?

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • I've tried to use:

    SpatialMappingManager.Instance.gameObject.SetActive(false);

    but it doesnt work, It freezes the cursor.

    May be I put it in the wrong place

Sign In or Register to comment.