I'm trying to use this code for a FPS in my VR project:
rotationX += VR.InputTracking.GetLocalRotation(VR.VRNode.Head).eulerAngles.y ;
rotationY += VR.InputTracking.GetLocalRotation(VR.VRNode.Head).eulerAngles.x ;
rotationY = Mathf.Clamp( rotationY, -maxLookAngleY, maxLookAngleY );
var xQuaternion : Quaternion= Quaternion.AngleAxis( rotationX, Vector3.up );
var yQuaternion : Quaternion= Quaternion.AngleAxis( rotationY, Vector3.left );
cameraTransform.rotation =...
VR.InputTracking class problem
rotationX += VR.InputTracking.GetLocalRotation(VR.VRNode.Head).eulerAngles.y ;
rotationY += VR.InputTracking.GetLocalRotation(VR.VRNode.Head).eulerAngles.x ;
rotationY = Mathf.Clamp( rotationY, -maxLookAngleY, maxLookAngleY );
var xQuaternion : Quaternion= Quaternion.AngleAxis( rotationX, Vector3.up );
var yQuaternion : Quaternion= Quaternion.AngleAxis( rotationY, Vector3.left );
cameraTransform.rotation =...
VR.InputTracking class problem