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.
Options

Does the world automatically add itself to the Unity physics engine?

When Hololens scans the world does that model become usable with the Unity physics engine? Or do we have to program that? Thanks.

Best Answer

  • Options
    Jarrod1937Jarrod1937 ✭✭✭
    edited June 2016 Answer ✓

    The spatial script in the Unity Holotoolkit seems to define a physics layer which it is generated in. Layers in Unity allow you to create a layer specifically for different content, like an enemy layer, props layer...etc. There is a matrix that defines if the layers interact via physics, and all are checked by default, so it should mostly work out of the box. However, with that said, I'd imagine using the raw spatial data would result in some weird physics results, so you'll want to do some processing/plane finding or something similar before trying to do physics against it.

Answers

  • Options
    Jarrod1937Jarrod1937 ✭✭✭
    edited June 2016 Answer ✓

    The spatial script in the Unity Holotoolkit seems to define a physics layer which it is generated in. Layers in Unity allow you to create a layer specifically for different content, like an enemy layer, props layer...etc. There is a matrix that defines if the layers interact via physics, and all are checked by default, so it should mostly work out of the box. However, with that said, I'd imagine using the raw spatial data would result in some weird physics results, so you'll want to do some processing/plane finding or something similar before trying to do physics against it.

Sign In or Register to comment.