The Gaze manager

Once the user gazes at an object, a cursor will indicate the gazed object. To enable the gaze and have a cursor in your scene, we will use components from the HoloToolkit.

Following are the steps:

  1. Add an Empty Game Object in the Object Hierarchy and rename it Root.
  2. Go to the Assets folder, navigate to HoloToolkit | Input| Scripts.
  3. Drag and drop the InputManager script to Root object.
  4. Go to the Assets folder again, navigate to HoloToolkit | Input | Scripts| Gaze.
  5. Drag and drop the GazeManager and GazeStabilizer script to the Root object.

The GazeManager class manages everything related with gazing at an object based on RaycastHit. The GazeStabilizer class helps in stabilizing the Gaze. It samples the form several RaycastHit positions and helps in stabilizing your gaze for precision targeting. The InputManager class manages the source of Inputs.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.134.151