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

Moving an object with the user gaze

Hello:

I have a sphere object and I would like to move it to re-positioning where the user is gazing. I know there is an example in the academy, but this one is enabling Spatial Mapping which enables the physics in the space (so the sphere is aware of the surrounded space and could fall to the floor, for example). I'm not looking to this.
I just need a simple way of adjust a little bit the coordinates (x and y) with the user gaze. Can I use the camera position to update the object or do I have to use the gaze manager code?

Thanks for your support.
Gus

Best Answer

Answers

  • Options

    Be aware thar the my code got a bit distorted by formatting. I was not able to fix this.

  • Options

    Have you looked at the TapToPlace script that is included in the toolkit? It may already do what you want or would at least give you a place to start from.

    Our Holographic world is here

    RoadToHolo.com      WikiHolo.net      @jbienz
    I work in Developer Experiences at Microsoft. My posts are based on my own experience and don't represent Microsoft or HoloLens.

Sign In or Register to comment.