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

namespace Obi
{
	// Token: 0x0200050F RID: 1295
	public class ObiRigidbody : MonoBehaviour
	{
		// Token: 0x17003293 RID: 12947
		// (get) Token: 0x0600951C RID: 38172 RVA: 0x00264D10 File Offset: 0x00262F10
		public unsafe IntPtr OniRigidbody
		{
			[CallerCount(1)]
			[CachedScanResults(RefRangeStart = 7615, RefRangeEnd = 7616, XrefRangeStart = 7615, XrefRangeEnd = 7616, 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: 0x0600951D RID: 38173 RVA: 0x00264D60 File Offset: 0x00262F60
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 640607, XrefRangeEnd = 640616, 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: 0x0600951E RID: 38174 RVA: 0x00264DA4 File Offset: 0x00262FA4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 640616, XrefRangeEnd = 640618, 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: 0x0600951F RID: 38175 RVA: 0x00264DE8 File Offset: 0x00262FE8
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 640622, RefRangeEnd = 640623, XrefRangeStart = 640618, XrefRangeEnd = 640622, 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: 0x06009520 RID: 38176 RVA: 0x00264E2C File Offset: 0x0026302C
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 640629, RefRangeEnd = 640630, XrefRangeStart = 640623, XrefRangeEnd = 640629, 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: 0x06009521 RID: 38177 RVA: 0x00264E70 File Offset: 0x00263070
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 640630, XrefRangeEnd = 640632, 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: 0x06009522 RID: 38178 RVA: 0x00264EBC File Offset: 0x002630BC
		// 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, 100674825);
			ObiRigidbody.NativeMethodInfoPtr_Awake_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674826);
			ObiRigidbody.NativeMethodInfoPtr_OnDestroy_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674827);
			ObiRigidbody.NativeMethodInfoPtr_UpdateIfNeeded_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674828);
			ObiRigidbody.NativeMethodInfoPtr_UpdateVelocities_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674829);
			ObiRigidbody.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiRigidbody>.NativeClassPtr, 100674830);
		}

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

		// Token: 0x1700328B RID: 12939
		// (get) Token: 0x06009524 RID: 38180 RVA: 0x00265004 File Offset: 0x00263204
		// (set) Token: 0x06009525 RID: 38181 RVA: 0x0026502C File Offset: 0x0026322C
		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: 0x1700328C RID: 12940
		// (get) Token: 0x06009526 RID: 38182 RVA: 0x00265050 File Offset: 0x00263250
		// (set) Token: 0x06009527 RID: 38183 RVA: 0x00265078 File Offset: 0x00263278
		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: 0x1700328D RID: 12941
		// (get) Token: 0x06009528 RID: 38184 RVA: 0x0026509C File Offset: 0x0026329C
		// (set) Token: 0x06009529 RID: 38185 RVA: 0x002650D0 File Offset: 0x002632D0
		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: 0x1700328E RID: 12942
		// (get) Token: 0x0600952A RID: 38186 RVA: 0x002650F8 File Offset: 0x002632F8
		// (set) Token: 0x0600952B RID: 38187 RVA: 0x00265120 File Offset: 0x00263320
		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: 0x1700328F RID: 12943
		// (get) Token: 0x0600952C RID: 38188 RVA: 0x00265144 File Offset: 0x00263344
		// (set) Token: 0x0600952D RID: 38189 RVA: 0x0026516C File Offset: 0x0026336C
		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: 0x17003290 RID: 12944
		// (get) Token: 0x0600952E RID: 38190 RVA: 0x00265190 File Offset: 0x00263390
		// (set) Token: 0x0600952F RID: 38191 RVA: 0x002651B8 File Offset: 0x002633B8
		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: 0x17003291 RID: 12945
		// (get) Token: 0x06009530 RID: 38192 RVA: 0x002651DC File Offset: 0x002633DC
		// (set) Token: 0x06009531 RID: 38193 RVA: 0x00265204 File Offset: 0x00263404
		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: 0x17003292 RID: 12946
		// (get) Token: 0x06009532 RID: 38194 RVA: 0x00265228 File Offset: 0x00263428
		// (set) Token: 0x06009533 RID: 38195 RVA: 0x00265250 File Offset: 0x00263450
		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: 0x04006375 RID: 25461
		private static readonly IntPtr NativeFieldInfoPtr_kinematicForParticles;

		// Token: 0x04006376 RID: 25462
		private static readonly IntPtr NativeFieldInfoPtr_oniRigidbody;

		// Token: 0x04006377 RID: 25463
		private static readonly IntPtr NativeFieldInfoPtr_unityRigidbody;

		// Token: 0x04006378 RID: 25464
		private static readonly IntPtr NativeFieldInfoPtr_dirty;

		// Token: 0x04006379 RID: 25465
		private static readonly IntPtr NativeFieldInfoPtr_adaptor;

		// Token: 0x0400637A RID: 25466
		private static readonly IntPtr NativeFieldInfoPtr_oniVelocities;

		// Token: 0x0400637B RID: 25467
		private static readonly IntPtr NativeFieldInfoPtr_velocity;

		// Token: 0x0400637C RID: 25468
		private static readonly IntPtr NativeFieldInfoPtr_angularVelocity;

		// Token: 0x0400637D RID: 25469
		private static readonly IntPtr NativeMethodInfoPtr_get_OniRigidbody_Public_get_IntPtr_0;

		// Token: 0x0400637E RID: 25470
		private static readonly IntPtr NativeMethodInfoPtr_Awake_Public_Void_0;

		// Token: 0x0400637F RID: 25471
		private static readonly IntPtr NativeMethodInfoPtr_OnDestroy_Public_Void_0;

		// Token: 0x04006380 RID: 25472
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Void_0;

		// Token: 0x04006381 RID: 25473
		private static readonly IntPtr NativeMethodInfoPtr_UpdateVelocities_Public_Void_0;

		// Token: 0x04006382 RID: 25474
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
