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

namespace Obi
{
	// Token: 0x020004AC RID: 1196
	public class ObiBoxShapeTracker : ObiShapeTracker
	{
		// Token: 0x06008C22 RID: 35874 RVA: 0x0023F5B0 File Offset: 0x0023D7B0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607514, XrefRangeEnd = 607517, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiBoxShapeTracker(BoxCollider collider)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiBoxShapeTracker>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(collider);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiBoxShapeTracker.NativeMethodInfoPtr__ctor_Public_Void_BoxCollider_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06008C23 RID: 35875 RVA: 0x0023F614 File Offset: 0x0023D814
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607517, XrefRangeEnd = 607533, 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), ObiBoxShapeTracker.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008C24 RID: 35876 RVA: 0x0023F664 File Offset: 0x0023D864
		// Note: this type is marked as 'beforefieldinit'.
		static ObiBoxShapeTracker()
		{
			Il2CppClassPointerStore<ObiBoxShapeTracker>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiBoxShapeTracker");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiBoxShapeTracker>.NativeClassPtr);
			ObiBoxShapeTracker.NativeFieldInfoPtr_size = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiBoxShapeTracker>.NativeClassPtr, "size");
			ObiBoxShapeTracker.NativeFieldInfoPtr_center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiBoxShapeTracker>.NativeClassPtr, "center");
			ObiBoxShapeTracker.NativeMethodInfoPtr__ctor_Public_Void_BoxCollider_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiBoxShapeTracker>.NativeClassPtr, 100674051);
			ObiBoxShapeTracker.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiBoxShapeTracker>.NativeClassPtr, 100674052);
		}

		// Token: 0x06008C25 RID: 35877 RVA: 0x0023EDCC File Offset: 0x0023CFCC
		public ObiBoxShapeTracker(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002FBE RID: 12222
		// (get) Token: 0x06008C26 RID: 35878 RVA: 0x0023F6E4 File Offset: 0x0023D8E4
		// (set) Token: 0x06008C27 RID: 35879 RVA: 0x0023F70C File Offset: 0x0023D90C
		public unsafe Vector3 size
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiBoxShapeTracker.NativeFieldInfoPtr_size);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiBoxShapeTracker.NativeFieldInfoPtr_size)) = value;
			}
		}

		// Token: 0x17002FBF RID: 12223
		// (get) Token: 0x06008C28 RID: 35880 RVA: 0x0023F730 File Offset: 0x0023D930
		// (set) Token: 0x06008C29 RID: 35881 RVA: 0x0023F758 File Offset: 0x0023D958
		public unsafe Vector3 center
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiBoxShapeTracker.NativeFieldInfoPtr_center);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiBoxShapeTracker.NativeFieldInfoPtr_center)) = value;
			}
		}

		// Token: 0x04005D66 RID: 23910
		private static readonly IntPtr NativeFieldInfoPtr_size;

		// Token: 0x04005D67 RID: 23911
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04005D68 RID: 23912
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_BoxCollider_0;

		// Token: 0x04005D69 RID: 23913
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
