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

namespace Obi
{
	// Token: 0x02000504 RID: 1284
	public class ObiBoxShapeTracker : ObiShapeTracker
	{
		// Token: 0x06009475 RID: 38005 RVA: 0x002622EC File Offset: 0x002604EC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639824, XrefRangeEnd = 639827, 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: 0x06009476 RID: 38006 RVA: 0x00262350 File Offset: 0x00260550
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639827, XrefRangeEnd = 639843, 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: 0x06009477 RID: 38007 RVA: 0x002623A0 File Offset: 0x002605A0
		// 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, 100674764);
			ObiBoxShapeTracker.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiBoxShapeTracker>.NativeClassPtr, 100674765);
		}

		// Token: 0x06009478 RID: 38008 RVA: 0x00261B08 File Offset: 0x0025FD08
		public ObiBoxShapeTracker(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003259 RID: 12889
		// (get) Token: 0x06009479 RID: 38009 RVA: 0x00262420 File Offset: 0x00260620
		// (set) Token: 0x0600947A RID: 38010 RVA: 0x00262448 File Offset: 0x00260648
		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: 0x1700325A RID: 12890
		// (get) Token: 0x0600947B RID: 38011 RVA: 0x0026246C File Offset: 0x0026066C
		// (set) Token: 0x0600947C RID: 38012 RVA: 0x00262494 File Offset: 0x00260694
		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: 0x0400630F RID: 25359
		private static readonly IntPtr NativeFieldInfoPtr_size;

		// Token: 0x04006310 RID: 25360
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04006311 RID: 25361
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_BoxCollider_0;

		// Token: 0x04006312 RID: 25362
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
