public VirtualReality() { pawnVR = new("PawnVR"); body = new(pawnVR, "Root"); leftHand = new(pawnVR, "LeftHand"); rightHand = new(pawnVR, "RightHand"); }
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));; } }
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))); } }