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.

Make a gameobject bound on walls with Spatial Mapping

edited August 2016 in Questions And Answers

So currently I am trying to make a gameobject collide with a real life wall and change direction randomly and move until it hits another wall. Trouble is, my script changes direction of gameobject whenever it collides with spatial mapping. Due to the uneven texture of spatial mapping, this means that the ball kind of just wobbles around in place since it collides with different jagged spatial mapping instead of moving towards a real life wall.
Is there a way for me to do this correctly?

Tagged:

Answers

  • @evangelurtz,
    I believe the Holograms 230 Spatial Mapping course will help here. It demonstrates how to find planes using the HoloToolkit. For your scenario, I would recommend using this technique to find your walls and replace them with thin cubes. You would then be able to disable the remaining Spatial Mapping meshes and have only your walls.

    Thanks!
    David

  • Hi, thanks for your response.
    I have followed the tutorial and the Hololens can differentiate walls and floors now, with a relatively smooth surface for both. I am not sure how to automatically place thin cubes on floors and walls identified by the Hololens. Help would be greatly appreciated.

Sign In or Register to comment.