public void Tick() { if (_hmdOrigin == null) { _hmdOrigin = CreateNewOrigin(GetType().Name); } _dataHelper.SetAllGazeRays(_eyeTrackingData, _hmdOrigin.position, _hmdOrigin.forward, true); }
public void Tick() { if (_mouseProviderCamera == null) { _mouseProviderCamera = GetMouseProviderCamera(GetType().Name); } var mouseRay = _mouseProviderCamera.ScreenPointToRay(Input.mousePosition); _dataHelper.SetAllGazeRays(_eyeTrackingData, mouseRay.origin, mouseRay.direction, true); }