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

Set an Object/ Hologram based on multiple manually placed anchors/ objects

Hey there,
what I want to do is placing an object. The objects orientation should be given by previously set vertices of the object ( by other objects or anchors, the position of those should be predefined in unity).

example: I want to place a box. when i first tap the position for the upper right corner is set. the next tap is for the lower left corner. So I can orient my object precise in the room.

@stepan_stulov do you maybe have any suggestion? Your answers have been pretty helpful so far.

Tagged:

Answers

  • Options

    Hey, @Currywurst

    Assuming your object is rigid its sufficient to position 3 points, for example bottom three of the four points, of your box to derive its position, orientation and scale. Optionally you can ignore scale but then only the first corner point will be interpreted literally while others will only defined the ray direction and won't snap the rest two corner of the box in place.

    Some basic vector manipulation knowledge is required.

    Cheers

    Building the future of holographic navigation. We're hiring.

  • Options

    Thanks @stepan_stulov for your quick and helpful replay! That is exactly what I want to do.
    Do you maybe have some sample project or code snippets so I can get an idea how to create a vector by tapping an applying it to an object?

    Regards

  • Options

    Hey, @Currywurst

    I usually limit myself to good explanation of fundamental principles and rarely give code samples.

    Cheers

    Building the future of holographic navigation. We're hiring.

Sign In or Register to comment.