public static Vector3 GetControllerDirection(Enums.XR.Model model) { switch (model) { case Enums.XR.Model.OculusCV1: return(Vector3.forward); case Enums.XR.Model.HTCVive: return(Quaternion.Euler(60, 0, 0) * Vector3.forward); default: return(Vector3.forward); } }
public static Vector3 GetPoseDriverOffset(Enums.XR.Model model) { switch (model) { case Enums.XR.Model.OculusCV1: return(Vector3.up * 0.08f); case Enums.XR.Model.HTCVive: return(Vector3.up * 0.08f); default: return(Vector3.zero); } }