public static bool IsControllerOfHand(GameObject checkController, ControllerHand hand) { if (hand == ControllerHand.Left && SDK_Bridge.IsControllerLeftHand(checkController)) { return(true); } if (hand == ControllerHand.Right && SDK_Bridge.IsControllerRightHand(checkController)) { return(true); } return(false); }
public static ControllerHand GetControllerHand(GameObject controller) { if (SDK_Bridge.IsControllerLeftHand(controller)) { return(ControllerHand.Left); } else if (SDK_Bridge.IsControllerRightHand(controller)) { return(ControllerHand.Right); } else { return(ControllerHand.None); } }
public static GameObject GetControllerRightHand() { return(SDK_Bridge.GetControllerRightHand()); }
public static GameObject TrackedObjectOfGameObject(GameObject obj, out uint index) { return(SDK_Bridge.GetTrackedObject(obj, out index)); }
public static Transform TrackedObjectOrigin(GameObject obj) { return(SDK_Bridge.GetTrackedObjectOrigin(obj)); }
public static GameObject TrackedObjectByIndex(uint index) { return(SDK_Bridge.GetTrackedObjectByIndex(index)); }
public static uint GetControllerIndex(GameObject controller) { return(SDK_Bridge.GetIndexOfTrackedObject(controller)); }
public static bool TrackedIndexIsController(uint index) { return(SDK_Bridge.TrackedIndexIsController(index)); }
public static Transform PlayAreaTransform() { return(SDK_Bridge.GetPlayArea()); }
public static Transform HeadsetCamera() { return(SDK_Bridge.GetHeadsetCamera()); }
public static Transform HeadsetTransform() { return(SDK_Bridge.GetHeadset()); }