GetEyeVelocity() public static method

public static GetEyeVelocity ( Eye eyeId ) : Posef
eyeId Eye
return Posef
Esempio n. 1
0
 /// <summary>
 /// The GetHeadsetVelocity method is used to determine the current velocity of the headset.
 /// </summary>
 /// <returns>A Vector3 containing the current velocity of the headset.</returns>
 public override Vector3 GetHeadsetVelocity()
 {
     return(OVRManager.isHmdPresent ? OVRPlugin.GetEyeVelocity(OVRPlugin.Eye.Left).ToOVRPose().position : Vector3.zero);
 }