Home Forums Unity SDK Move GameObject with Gaze Point Reply To: Move GameObject with Gaze Point

Grant [Tobii]

Hi @vramakrishnan, did you check the values of the gaze point as reported in the sample script we produced @

Scripting API

using Unity.Engine;
using Tobii.Gaming;

public class ExampleClass : MonoBehaviour
    void Update()
        GazePoint gazePoint = TobiiAPI.GetGazePoint();
        if (gazePoint.IsRecent()) // Use IsValid property instead to process old but valid data
            // Note: Values can be negative if the user looks outside the game view.
            print("Gaze point on Screen (X,Y): " + gazePoint.Screen.x + ", " + gazePoint.Screen.y);

It would be an idea to see what values are being produced to see how to convert them to your own desired coordinate system.