Gaze Manager
The GazeManager provides a useful Unity interface for managing the gaze ray-the user's camera view direction-and its interaction with other objects in the scene. This includes the current HitInfo (see https://docs.unity3d.com/ScriptReference/RaycastHit.html). GazeManager is a singleton class, ensuring that there is only one instance in the scene. In each game update, it gathers the current gaze info and does a physics raycast to see if any objects are at the center of the user's view. It also includes some magic goodness to stabilize the gaze pose for comfort, compensating for the fact that it's tied to your head movement, which may not be as smooth as our visual biology perceives it!
In concert with GazeManager, the HoloToolkit ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access