Beispiel #1
0
 public VirtualReality()
 {
     pawnVR    = new("PawnVR");
     body      = new(pawnVR, "Root");
     leftHand  = new(pawnVR, "LeftHand");
     rightHand = new(pawnVR, "RightHand");
 }
Beispiel #2
0
            internal static unsafe void Invoke(MotionControllerComponent MotionControllerComponent)
            {
                long *p = stackalloc long[] { 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = MotionControllerComponent;
                Main.GetProcessEvent(MotionTrackedDeviceFunctionLibrary.DefaultObject, DisableMotionTrackingForComponent_ptr, new IntPtr(p));;
            }
        }
Beispiel #3
0
            internal static unsafe bool Invoke(MotionControllerComponent MotionControllerComponent)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = MotionControllerComponent;
                Main.GetProcessEvent(MotionTrackedDeviceFunctionLibrary.DefaultObject, IsMotionTrackingEnabledForComponent_ptr, new IntPtr(p));;
                return(*((bool *)(b + 8)));
            }
        }