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.
Chapter 2: Gaze
I apologize for being a novice but how did you get pass chapter 2? How do I edit the GazeManager.cs and Cursormanager.cs file, and edit it to perform the following tasks:
1.Perform a physics raycast,
2.Store the position and normal of the raycast intersection,
3.If the raycast did not hit anything, set the position and normal to defaults.
Best Answers
-
DavidKlineMS mod
@evanjames,
There is no apology needed for being a novice. We have all been thereIn each of the gray highlighted areas of the tutorial, there is a link labeled "(show)". You can click on this link to expand the completed version of the code. If you copy all of the code listed there and paste it over everything in the corresponding file in your project, you can complete the chapter (and future chapters) if you are unsure of what specific code to write.
Since you mention that you are a novice, I highly recommend reading the code that performs the steps outlined in the tutorial (ex: Perform a physics raycast) to see how the developer accomplished the task. I find that doing this helps accelerate my personal learning as once I see how it was done, I have a better idea of where to start on my own projects.
Thanks!
David6 -
neerajwadhwa mod
In the inspector panel, please click on the Script GazeManager or CursorManager and that will open up these *.cs files in your editor. Then you can read through the code in these scripts that performs the aforementioned operations.
6
Answers
@evanjames,
There is no apology needed for being a novice. We have all been there
In each of the gray highlighted areas of the tutorial, there is a link labeled "(show)". You can click on this link to expand the completed version of the code. If you copy all of the code listed there and paste it over everything in the corresponding file in your project, you can complete the chapter (and future chapters) if you are unsure of what specific code to write.
Since you mention that you are a novice, I highly recommend reading the code that performs the steps outlined in the tutorial (ex: Perform a physics raycast) to see how the developer accomplished the task. I find that doing this helps accelerate my personal learning as once I see how it was done, I have a better idea of where to start on my own projects.
Thanks!
David
@DavidKlineMS Thank you for the detailed response. Where should I place the scripts? here you can see I have the manager object and cursor object listed in the hierarchy. Is this how it should look?
@evanjames,
You are overwriting the contents of the scripts. Earlier in the tutorial they got attached to the appropriate objects.
Were you intending to post an image?
Thanks!
David
@DavidKlineMS
I did attached two images but apparently they did not upload completely .
In the inspector panel, please click on the Script GazeManager or CursorManager and that will open up these *.cs files in your editor. Then you can read through the code in these scripts that performs the aforementioned operations.