Home › Forums › Unity SDK › Getting XYZ position in Unity › Reply To: Getting XYZ position in Unity
25/03/2021 at 16:31 #20086
Grant [Tobii]
Keymaster
Hi @yotam, within the Tobii XR SDK we provide the gaze origin and direction. From that, one can calculate a vector from the simple formula ‘gaze.origin + gaze.direction * length’. With this you can use a raycast in Unity to determine if that ray intersects with any objects in your scene and that will get you the the (x, y, z) of the intersection point. Info on Raycast @ https://docs.unity3d.com/ScriptReference/Physics.Raycast.html
Hopefully, this is the information you are looking for! Let us know how it goes, best wishes.