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

Move a gameobject to a random position on the spatial map of a room

mausp_22mausp_22
edited February 2017 in Questions And Answers

Hi everyone,
I'm currently trying to make a gameobject move to a random position on the spatial map of the room I'm using my hololens in. The gameobject should Change it's destination to another random destination and move there after a few seconds. How can I get the x, y and z values of points on the map to use as variables that build a vector3 that I can then set as a destination for the gameobject? I'm using C#.
Thanks in advance!

Answers

  • Options

    Perhaps you could send a Raycast in a random direction within where the camera is facing and place the object wherever it hits?

    Taqtile

Sign In or Register to comment.