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

namespace Obi
{
	// Token: 0x020004B1 RID: 1201
	public class ObiSphereShapeTracker : ObiShapeTracker
	{
		// Token: 0x06008C5E RID: 35934 RVA: 0x00240450 File Offset: 0x0023E650
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 607690, RefRangeEnd = 607691, XrefRangeStart = 607686, XrefRangeEnd = 607690, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiSphereShapeTracker(SphereCollider collider)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiSphereShapeTracker>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(collider);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiSphereShapeTracker.NativeMethodInfoPtr__ctor_Public_Void_SphereCollider_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06008C5F RID: 35935 RVA: 0x002404B4 File Offset: 0x0023E6B4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607691, XrefRangeEnd = 607706, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void UpdateIfNeeded()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ObiSphereShapeTracker.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008C60 RID: 35936 RVA: 0x00240504 File Offset: 0x0023E704
		// Note: this type is marked as 'beforefieldinit'.
		static ObiSphereShapeTracker()
		{
			Il2CppClassPointerStore<ObiSphereShapeTracker>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiSphereShapeTracker");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiSphereShapeTracker>.NativeClassPtr);
			ObiSphereShapeTracker.NativeFieldInfoPtr_radius = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiSphereShapeTracker>.NativeClassPtr, "radius");
			ObiSphereShapeTracker.NativeFieldInfoPtr_center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiSphereShapeTracker>.NativeClassPtr, "center");
			ObiSphereShapeTracker.NativeMethodInfoPtr__ctor_Public_Void_SphereCollider_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphereShapeTracker>.NativeClassPtr, 100674072);
			ObiSphereShapeTracker.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphereShapeTracker>.NativeClassPtr, 100674073);
		}

		// Token: 0x06008C61 RID: 35937 RVA: 0x0023EDCC File Offset: 0x0023CFCC
		public ObiSphereShapeTracker(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002FD1 RID: 12241
		// (get) Token: 0x06008C62 RID: 35938 RVA: 0x00240584 File Offset: 0x0023E784
		// (set) Token: 0x06008C63 RID: 35939 RVA: 0x002405AC File Offset: 0x0023E7AC
		public unsafe float radius
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiSphereShapeTracker.NativeFieldInfoPtr_radius);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiSphereShapeTracker.NativeFieldInfoPtr_radius)) = value;
			}
		}

		// Token: 0x17002FD2 RID: 12242
		// (get) Token: 0x06008C64 RID: 35940 RVA: 0x002405D0 File Offset: 0x0023E7D0
		// (set) Token: 0x06008C65 RID: 35941 RVA: 0x002405F8 File Offset: 0x0023E7F8
		public unsafe Vector3 center
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiSphereShapeTracker.NativeFieldInfoPtr_center);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiSphereShapeTracker.NativeFieldInfoPtr_center)) = value;
			}
		}

		// Token: 0x04005D89 RID: 23945
		private static readonly IntPtr NativeFieldInfoPtr_radius;

		// Token: 0x04005D8A RID: 23946
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04005D8B RID: 23947
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_SphereCollider_0;

		// Token: 0x04005D8C RID: 23948
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
