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

namespace Obi
{
	// Token: 0x020004A9 RID: 1193
	public class ObiCapsuleShapeTracker2D : ObiShapeTracker
	{
		// Token: 0x06008C02 RID: 35842 RVA: 0x0023EE70 File Offset: 0x0023D070
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607432, XrefRangeEnd = 607435, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiCapsuleShapeTracker2D(CapsuleCollider2D collider)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiCapsuleShapeTracker2D>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(collider);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiCapsuleShapeTracker2D.NativeMethodInfoPtr__ctor_Public_Void_CapsuleCollider2D_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06008C03 RID: 35843 RVA: 0x0023EED4 File Offset: 0x0023D0D4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607435, XrefRangeEnd = 607453, 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), ObiCapsuleShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008C04 RID: 35844 RVA: 0x0023EF24 File Offset: 0x0023D124
		// Note: this type is marked as 'beforefieldinit'.
		static ObiCapsuleShapeTracker2D()
		{
			Il2CppClassPointerStore<ObiCapsuleShapeTracker2D>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiCapsuleShapeTracker2D");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiCapsuleShapeTracker2D>.NativeClassPtr);
			ObiCapsuleShapeTracker2D.NativeFieldInfoPtr_direction = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCapsuleShapeTracker2D>.NativeClassPtr, "direction");
			ObiCapsuleShapeTracker2D.NativeFieldInfoPtr_size = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCapsuleShapeTracker2D>.NativeClassPtr, "size");
			ObiCapsuleShapeTracker2D.NativeFieldInfoPtr_center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCapsuleShapeTracker2D>.NativeClassPtr, "center");
			ObiCapsuleShapeTracker2D.NativeMethodInfoPtr__ctor_Public_Void_CapsuleCollider2D_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiCapsuleShapeTracker2D>.NativeClassPtr, 100674043);
			ObiCapsuleShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiCapsuleShapeTracker2D>.NativeClassPtr, 100674044);
		}

		// Token: 0x06008C05 RID: 35845 RVA: 0x0023EDCC File Offset: 0x0023CFCC
		public ObiCapsuleShapeTracker2D(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002FB5 RID: 12213
		// (get) Token: 0x06008C06 RID: 35846 RVA: 0x0023EFB8 File Offset: 0x0023D1B8
		// (set) Token: 0x06008C07 RID: 35847 RVA: 0x0023EFE0 File Offset: 0x0023D1E0
		public unsafe CapsuleDirection2D direction
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker2D.NativeFieldInfoPtr_direction);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker2D.NativeFieldInfoPtr_direction)) = value;
			}
		}

		// Token: 0x17002FB6 RID: 12214
		// (get) Token: 0x06008C08 RID: 35848 RVA: 0x0023F004 File Offset: 0x0023D204
		// (set) Token: 0x06008C09 RID: 35849 RVA: 0x0023F02C File Offset: 0x0023D22C
		public unsafe Vector2 size
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker2D.NativeFieldInfoPtr_size);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker2D.NativeFieldInfoPtr_size)) = value;
			}
		}

		// Token: 0x17002FB7 RID: 12215
		// (get) Token: 0x06008C0A RID: 35850 RVA: 0x0023F050 File Offset: 0x0023D250
		// (set) Token: 0x06008C0B RID: 35851 RVA: 0x0023F078 File Offset: 0x0023D278
		public unsafe Vector2 center
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker2D.NativeFieldInfoPtr_center);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker2D.NativeFieldInfoPtr_center)) = value;
			}
		}

		// Token: 0x04005D55 RID: 23893
		private static readonly IntPtr NativeFieldInfoPtr_direction;

		// Token: 0x04005D56 RID: 23894
		private static readonly IntPtr NativeFieldInfoPtr_size;

		// Token: 0x04005D57 RID: 23895
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04005D58 RID: 23896
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_CapsuleCollider2D_0;

		// Token: 0x04005D59 RID: 23897
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
