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

namespace Obi
{
	// Token: 0x02000505 RID: 1285
	public class ObiCapsuleShapeTracker : ObiShapeTracker
	{
		// Token: 0x0600947D RID: 38013 RVA: 0x002624B8 File Offset: 0x002606B8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639843, XrefRangeEnd = 639846, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiCapsuleShapeTracker(CapsuleCollider collider)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(collider);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiCapsuleShapeTracker.NativeMethodInfoPtr__ctor_Public_Void_CapsuleCollider_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x0600947E RID: 38014 RVA: 0x0026251C File Offset: 0x0026071C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiCapsuleShapeTracker(CharacterController collider)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(collider);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiCapsuleShapeTracker.NativeMethodInfoPtr__ctor_Public_Void_CharacterController_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x0600947F RID: 38015 RVA: 0x00262580 File Offset: 0x00260780
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639846, XrefRangeEnd = 639881, 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), ObiCapsuleShapeTracker.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009480 RID: 38016 RVA: 0x002625D0 File Offset: 0x002607D0
		// Note: this type is marked as 'beforefieldinit'.
		static ObiCapsuleShapeTracker()
		{
			Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiCapsuleShapeTracker");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr);
			ObiCapsuleShapeTracker.NativeFieldInfoPtr_direction = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr, "direction");
			ObiCapsuleShapeTracker.NativeFieldInfoPtr_radius = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr, "radius");
			ObiCapsuleShapeTracker.NativeFieldInfoPtr_height = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr, "height");
			ObiCapsuleShapeTracker.NativeFieldInfoPtr_center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr, "center");
			ObiCapsuleShapeTracker.NativeMethodInfoPtr__ctor_Public_Void_CapsuleCollider_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr, 100674766);
			ObiCapsuleShapeTracker.NativeMethodInfoPtr__ctor_Public_Void_CharacterController_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr, 100674767);
			ObiCapsuleShapeTracker.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiCapsuleShapeTracker>.NativeClassPtr, 100674768);
		}

		// Token: 0x06009481 RID: 38017 RVA: 0x00261B08 File Offset: 0x0025FD08
		public ObiCapsuleShapeTracker(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700325B RID: 12891
		// (get) Token: 0x06009482 RID: 38018 RVA: 0x0026268C File Offset: 0x0026088C
		// (set) Token: 0x06009483 RID: 38019 RVA: 0x002626B4 File Offset: 0x002608B4
		public unsafe int direction
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker.NativeFieldInfoPtr_direction);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker.NativeFieldInfoPtr_direction)) = value;
			}
		}

		// Token: 0x1700325C RID: 12892
		// (get) Token: 0x06009484 RID: 38020 RVA: 0x002626D8 File Offset: 0x002608D8
		// (set) Token: 0x06009485 RID: 38021 RVA: 0x00262700 File Offset: 0x00260900
		public unsafe float radius
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker.NativeFieldInfoPtr_radius);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker.NativeFieldInfoPtr_radius)) = value;
			}
		}

		// Token: 0x1700325D RID: 12893
		// (get) Token: 0x06009486 RID: 38022 RVA: 0x00262724 File Offset: 0x00260924
		// (set) Token: 0x06009487 RID: 38023 RVA: 0x0026274C File Offset: 0x0026094C
		public unsafe float height
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker.NativeFieldInfoPtr_height);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker.NativeFieldInfoPtr_height)) = value;
			}
		}

		// Token: 0x1700325E RID: 12894
		// (get) Token: 0x06009488 RID: 38024 RVA: 0x00262770 File Offset: 0x00260970
		// (set) Token: 0x06009489 RID: 38025 RVA: 0x00262798 File Offset: 0x00260998
		public unsafe Vector3 center
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker.NativeFieldInfoPtr_center);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCapsuleShapeTracker.NativeFieldInfoPtr_center)) = value;
			}
		}

		// Token: 0x04006313 RID: 25363
		private static readonly IntPtr NativeFieldInfoPtr_direction;

		// Token: 0x04006314 RID: 25364
		private static readonly IntPtr NativeFieldInfoPtr_radius;

		// Token: 0x04006315 RID: 25365
		private static readonly IntPtr NativeFieldInfoPtr_height;

		// Token: 0x04006316 RID: 25366
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04006317 RID: 25367
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_CapsuleCollider_0;

		// Token: 0x04006318 RID: 25368
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_CharacterController_0;

		// Token: 0x04006319 RID: 25369
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
