Skip to content

Commit

Permalink
Fix Gaze Detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotrian committed Jun 23, 2016
1 parent e2f6fb7 commit 32c0cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/HOTK/HOTK_Overlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ private void UpdateGaze(ref bool changed)
if (_hmdTracker != null && _hmdTracker.IsValid)
{
var result = new IntersectionResults();
hit = ComputeIntersection(_hmdTracker.gameObject.transform.position, new Vector3(0f, 0f, 1f), ref result);
hit = ComputeIntersection(_hmdTracker.gameObject.transform.position, _hmdTracker.gameObject.transform.forward, ref result);
//Debug.Log("Hit! " + gameObject.name);
}
HandleAnimateOnGaze(hit, ref changed);
Expand Down

0 comments on commit 32c0cf2

Please sign in to comment.