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

namespace Obi
{
	// Token: 0x02000509 RID: 1289
	public class ObiSphereShapeTracker : ObiShapeTracker
	{
		// Token: 0x060094B1 RID: 38065 RVA: 0x0026318C File Offset: 0x0026138C
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 640000, RefRangeEnd = 640001, XrefRangeStart = 639996, XrefRangeEnd = 640000, 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: 0x060094B2 RID: 38066 RVA: 0x002631F0 File Offset: 0x002613F0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 640001, XrefRangeEnd = 640016, 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: 0x060094B3 RID: 38067 RVA: 0x00263240 File Offset: 0x00261440
		// 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, 100674785);
			ObiSphereShapeTracker.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphereShapeTracker>.NativeClassPtr, 100674786);
		}

		// Token: 0x060094B4 RID: 38068 RVA: 0x00261B08 File Offset: 0x0025FD08
		public ObiSphereShapeTracker(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700326C RID: 12908
		// (get) Token: 0x060094B5 RID: 38069 RVA: 0x002632C0 File Offset: 0x002614C0
		// (set) Token: 0x060094B6 RID: 38070 RVA: 0x002632E8 File Offset: 0x002614E8
		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: 0x1700326D RID: 12909
		// (get) Token: 0x060094B7 RID: 38071 RVA: 0x0026330C File Offset: 0x0026150C
		// (set) Token: 0x060094B8 RID: 38072 RVA: 0x00263334 File Offset: 0x00261534
		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: 0x04006332 RID: 25394
		private static readonly IntPtr NativeFieldInfoPtr_radius;

		// Token: 0x04006333 RID: 25395
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04006334 RID: 25396
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_SphereCollider_0;

		// Token: 0x04006335 RID: 25397
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
