using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;

namespace Obi
{
	// Token: 0x020004B7 RID: 1207
	public class ObiRigidbody : MonoBehaviour
	{
		// Token: 0x17002FF8 RID: 12280
		// (get) Token: 0x06008CC9 RID: 36041 RVA: 0x00241FD4 File Offset: 0x002401D4
		public unsafe IntPtr OniRigidbody
		{
			[CallerCount(1)]
			[CachedScanResults(RefRangeStart = 7321, RefRangeEnd = 7322, XrefRangeStart = 7321, XrefRangeEnd = 7322, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiRigidbody.NativeMethodInfoPtr_get_OniRigidbody_Public_get_IntPtr_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06008CCA RID: 36042 RVA: 0x00242024 File Offset: 0x00240224
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 608297, XrefRangeEnd = 608306, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Awake()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiRigidbody.NativeMethodInfoPtr_Awake_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008CCB RID: 36043 RVA: 0x00242068 File Offset: 0x00240268
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 608306, XrefRangeEnd = 608308, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDestroy()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiRigidbody.NativeMethodInfoPtr_OnDestroy_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008CCC RID: 36044 RVA: 0x002420AC File Offset: 0x002402AC
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 608312, RefRangeEnd = 608313, XrefRangeStart = 608308, XrefRangeEnd = 608312, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void UpdateIfNeeded()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiRigidbody.NativeMethodInfoPtr_UpdateIfNeeded_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008CCD RID: 36045 RVA: 0x002420F0 File Offset: 0x002402F0
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 608319, RefRangeEnd = 608320, XrefRangeStart = 608313, XrefRangeEnd = 608319, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void UpdateVelocities()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiRigidbody.NativeMethodInfoPtr_UpdateVelocities_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008CCE RID: 36046 RVA: 0x00242134 File Offset: 0x00240334
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 608320, XrefRangeEnd = 608322, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiRigidbody()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiRigidbody.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008CCF RID: 36047 RVA: 0x00242180 File Offset: 0x00240380
		// Note: this type is marked as 'beforefieldinit'.
		static ObiRigidbody()
		{
			Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiRigidbody");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr);
			ObiRigidbody.NativeFieldInfoPtr_kinematicForParticles = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, "kinematicForParticles");
			ObiRigidbody.NativeFieldInfoPtr_oniRigidbody = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, "oniRigidbody");
			ObiRigidbody.NativeFieldInfoPtr_unityRigidbody = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, "unityRigidbody");
			ObiRigidbody.NativeFieldInfoPtr_dirty = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, "dirty");
			ObiRigidbody.NativeFieldInfoPtr_adaptor = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, "adaptor");
			ObiRigidbody.NativeFieldInfoPtr_oniVelocities = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, "oniVelocities");
			ObiRigidbody.NativeFieldInfoPtr_velocity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, "velocity");
			ObiRigidbody.NativeFieldInfoPtr_angularVelocity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, "angularVelocity");
			ObiRigidbody.NativeMethodInfoPtr_get_OniRigidbody_Public_get_IntPtr_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674112);
			ObiRigidbody.NativeMethodInfoPtr_Awake_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674113);
			ObiRigidbody.NativeMethodInfoPtr_OnDestroy_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674114);
			ObiRigidbody.NativeMethodInfoPtr_UpdateIfNeeded_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674115);
			ObiRigidbody.NativeMethodInfoPtr_UpdateVelocities_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674116);
			ObiRigidbody.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674117);
		}

		// Token: 0x06008CD0 RID: 36048 RVA: 0x0000351C File Offset: 0x0000171C
		public ObiRigidbody(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002FF0 RID: 12272
		// (get) Token: 0x06008CD1 RID: 36049 RVA: 0x002422C8 File Offset: 0x002404C8
		// (set) Token: 0x06008CD2 RID: 36050 RVA: 0x002422F0 File Offset: 0x002404F0
		public unsafe bool kinematicForParticles
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_kinematicForParticles);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_kinematicForParticles)) = value;
			}
		}

		// Token: 0x17002FF1 RID: 12273
		// (get) Token: 0x06008CD3 RID: 36051 RVA: 0x00242314 File Offset: 0x00240514
		// (set) Token: 0x06008CD4 RID: 36052 RVA: 0x0024233C File Offset: 0x0024053C
		public unsafe IntPtr oniRigidbody
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_oniRigidbody);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_oniRigidbody)) = value;
			}
		}

		// Token: 0x17002FF2 RID: 12274
		// (get) Token: 0x06008CD5 RID: 36053 RVA: 0x00242360 File Offset: 0x00240560
		// (set) Token: 0x06008CD6 RID: 36054 RVA: 0x00242394 File Offset: 0x00240594
		public unsafe Rigidbody unityRigidbody
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_unityRigidbody);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Rigidbody(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_unityRigidbody), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002FF3 RID: 12275
		// (get) Token: 0x06008CD7 RID: 36055 RVA: 0x002423BC File Offset: 0x002405BC
		// (set) Token: 0x06008CD8 RID: 36056 RVA: 0x002423E4 File Offset: 0x002405E4
		public unsafe bool dirty
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_dirty);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_dirty)) = value;
			}
		}

		// Token: 0x17002FF4 RID: 12276
		// (get) Token: 0x06008CD9 RID: 36057 RVA: 0x00242408 File Offset: 0x00240608
		// (set) Token: 0x06008CDA RID: 36058 RVA: 0x00242430 File Offset: 0x00240630
		public unsafe Oni.Rigidbody adaptor
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_adaptor);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_adaptor)) = value;
			}
		}

		// Token: 0x17002FF5 RID: 12277
		// (get) Token: 0x06008CDB RID: 36059 RVA: 0x00242454 File Offset: 0x00240654
		// (set) Token: 0x06008CDC RID: 36060 RVA: 0x0024247C File Offset: 0x0024067C
		public unsafe Oni.RigidbodyVelocities oniVelocities
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_oniVelocities);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_oniVelocities)) = value;
			}
		}

		// Token: 0x17002FF6 RID: 12278
		// (get) Token: 0x06008CDD RID: 36061 RVA: 0x002424A0 File Offset: 0x002406A0
		// (set) Token: 0x06008CDE RID: 36062 RVA: 0x002424C8 File Offset: 0x002406C8
		public unsafe Vector3 velocity
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_velocity);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_velocity)) = value;
			}
		}

		// Token: 0x17002FF7 RID: 12279
		// (get) Token: 0x06008CDF RID: 36063 RVA: 0x002424EC File Offset: 0x002406EC
		// (set) Token: 0x06008CE0 RID: 36064 RVA: 0x00242514 File Offset: 0x00240714
		public unsafe Vector3 angularVelocity
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_angularVelocity);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiRigidbody.NativeFieldInfoPtr_angularVelocity)) = value;
			}
		}

		// Token: 0x04005DCC RID: 24012
		private static readonly IntPtr NativeFieldInfoPtr_kinematicForParticles;

		// Token: 0x04005DCD RID: 24013
		private static readonly IntPtr NativeFieldInfoPtr_oniRigidbody;

		// Token: 0x04005DCE RID: 24014
		private static readonly IntPtr NativeFieldInfoPtr_unityRigidbody;

		// Token: 0x04005DCF RID: 24015
		private static readonly IntPtr NativeFieldInfoPtr_dirty;

		// Token: 0x04005DD0 RID: 24016
		private static readonly IntPtr NativeFieldInfoPtr_adaptor;

		// Token: 0x04005DD1 RID: 24017
		private static readonly IntPtr NativeFieldInfoPtr_oniVelocities;

		// Token: 0x04005DD2 RID: 24018
		private static readonly IntPtr NativeFieldInfoPtr_velocity;

		// Token: 0x04005DD3 RID: 24019
		private static readonly IntPtr NativeFieldInfoPtr_angularVelocity;

		// Token: 0x04005DD4 RID: 24020
		private static readonly IntPtr NativeMethodInfoPtr_get_OniRigidbody_Public_get_IntPtr_0;

		// Token: 0x04005DD5 RID: 24021
		private static readonly IntPtr NativeMethodInfoPtr_Awake_Public_Void_0;

		// Token: 0x04005DD6 RID: 24022
		private static readonly IntPtr NativeMethodInfoPtr_OnDestroy_Public_Void_0;

		// Token: 0x04005DD7 RID: 24023
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Void_0;

		// Token: 0x04005DD8 RID: 24024
		private static readonly IntPtr NativeMethodInfoPtr_UpdateVelocities_Public_Void_0;

		// Token: 0x04005DD9 RID: 24025
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
