Example #1
0
    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);
    }
Example #2
0
 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);
     }
 }
Example #3
0
 public static GameObject GetControllerRightHand()
 {
     return(SDK_Bridge.GetControllerRightHand());
 }
Example #4
0
 public static GameObject TrackedObjectOfGameObject(GameObject obj, out uint index)
 {
     return(SDK_Bridge.GetTrackedObject(obj, out index));
 }
Example #5
0
 public static Transform TrackedObjectOrigin(GameObject obj)
 {
     return(SDK_Bridge.GetTrackedObjectOrigin(obj));
 }
Example #6
0
 public static GameObject TrackedObjectByIndex(uint index)
 {
     return(SDK_Bridge.GetTrackedObjectByIndex(index));
 }
Example #7
0
 public static uint GetControllerIndex(GameObject controller)
 {
     return(SDK_Bridge.GetIndexOfTrackedObject(controller));
 }
Example #8
0
 public static bool TrackedIndexIsController(uint index)
 {
     return(SDK_Bridge.TrackedIndexIsController(index));
 }
Example #9
0
 public static Transform PlayAreaTransform()
 {
     return(SDK_Bridge.GetPlayArea());
 }
Example #10
0
 public static Transform HeadsetCamera()
 {
     return(SDK_Bridge.GetHeadsetCamera());
 }
Example #11
0
 public static Transform HeadsetTransform()
 {
     return(SDK_Bridge.GetHeadset());
 }