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

namespace Obi
{
	// Token: 0x02000501 RID: 1281
	public class ObiCapsuleShapeTracker2D : ObiShapeTracker
	{
		// Token: 0x06009455 RID: 37973 RVA: 0x00261BAC File Offset: 0x0025FDAC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639742, XrefRangeEnd = 639745, 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: 0x06009456 RID: 37974 RVA: 0x00261C10 File Offset: 0x0025FE10
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639745, XrefRangeEnd = 639763, 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: 0x06009457 RID: 37975 RVA: 0x00261C60 File Offset: 0x0025FE60
		// 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, 100674756);
			ObiCapsuleShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiCapsuleShapeTracker2D>.NativeClassPtr, 100674757);
		}

		// Token: 0x06009458 RID: 37976 RVA: 0x00261B08 File Offset: 0x0025FD08
		public ObiCapsuleShapeTracker2D(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003250 RID: 12880
		// (get) Token: 0x06009459 RID: 37977 RVA: 0x00261CF4 File Offset: 0x0025FEF4
		// (set) Token: 0x0600945A RID: 37978 RVA: 0x00261D1C File Offset: 0x0025FF1C
		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: 0x17003251 RID: 12881
		// (get) Token: 0x0600945B RID: 37979 RVA: 0x00261D40 File Offset: 0x0025FF40
		// (set) Token: 0x0600945C RID: 37980 RVA: 0x00261D68 File Offset: 0x0025FF68
		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: 0x17003252 RID: 12882
		// (get) Token: 0x0600945D RID: 37981 RVA: 0x00261D8C File Offset: 0x0025FF8C
		// (set) Token: 0x0600945E RID: 37982 RVA: 0x00261DB4 File Offset: 0x0025FFB4
		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: 0x040062FE RID: 25342
		private static readonly IntPtr NativeFieldInfoPtr_direction;

		// Token: 0x040062FF RID: 25343
		private static readonly IntPtr NativeFieldInfoPtr_size;

		// Token: 0x04006300 RID: 25344
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04006301 RID: 25345
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_CapsuleCollider2D_0;

		// Token: 0x04006302 RID: 25346
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
