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

namespace RootMotion.FinalIK
{
	// Token: 0x0200045B RID: 1115
	[Serializable]
	public class ConstraintPositionOffset : Constraint
	{
		// Token: 0x060083E9 RID: 33769 RVA: 0x0021A3BC File Offset: 0x002185BC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626465, XrefRangeEnd = 626478, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void UpdateConstraint()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ConstraintPositionOffset.NativeMethodInfoPtr_UpdateConstraint_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060083EA RID: 33770 RVA: 0x0021A40C File Offset: 0x0021860C
		[CallerCount(1664)]
		[CachedScanResults(RefRangeStart = 7711, RefRangeEnd = 9375, XrefRangeStart = 7711, XrefRangeEnd = 9375, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ConstraintPositionOffset()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ConstraintPositionOffset.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060083EB RID: 33771 RVA: 0x0021A458 File Offset: 0x00218658
		[CallerCount(125)]
		[CachedScanResults(RefRangeStart = 16970, RefRangeEnd = 17095, XrefRangeStart = 16970, XrefRangeEnd = 17095, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ConstraintPositionOffset(Transform transform)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(transform);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ConstraintPositionOffset.NativeMethodInfoPtr__ctor_Public_Void_Transform_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x17002CD3 RID: 11475
		// (get) Token: 0x060083EC RID: 33772 RVA: 0x0021A4BC File Offset: 0x002186BC
		public unsafe bool positionChanged
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626478, XrefRangeEnd = 626480, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ConstraintPositionOffset.NativeMethodInfoPtr_get_positionChanged_Private_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x060083ED RID: 33773 RVA: 0x0021A50C File Offset: 0x0021870C
		// Note: this type is marked as 'beforefieldinit'.
		static ConstraintPositionOffset()
		{
			Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "ConstraintPositionOffset");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr);
			ConstraintPositionOffset.NativeFieldInfoPtr_offset = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, "offset");
			ConstraintPositionOffset.NativeFieldInfoPtr_defaultLocalPosition = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, "defaultLocalPosition");
			ConstraintPositionOffset.NativeFieldInfoPtr_lastLocalPosition = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, "lastLocalPosition");
			ConstraintPositionOffset.NativeFieldInfoPtr_initiated = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, "initiated");
			ConstraintPositionOffset.NativeMethodInfoPtr_UpdateConstraint_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, 100673291);
			ConstraintPositionOffset.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, 100673292);
			ConstraintPositionOffset.NativeMethodInfoPtr__ctor_Public_Void_Transform_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, 100673293);
			ConstraintPositionOffset.NativeMethodInfoPtr_get_positionChanged_Private_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, 100673294);
		}

		// Token: 0x060083EE RID: 33774 RVA: 0x0021A364 File Offset: 0x00218564
		public ConstraintPositionOffset(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002CCF RID: 11471
		// (get) Token: 0x060083EF RID: 33775 RVA: 0x0021A5DC File Offset: 0x002187DC
		// (set) Token: 0x060083F0 RID: 33776 RVA: 0x0021A604 File Offset: 0x00218804
		public unsafe Vector3 offset
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintPositionOffset.NativeFieldInfoPtr_offset);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintPositionOffset.NativeFieldInfoPtr_offset)) = value;
			}
		}

		// Token: 0x17002CD0 RID: 11472
		// (get) Token: 0x060083F1 RID: 33777 RVA: 0x0021A628 File Offset: 0x00218828
		// (set) Token: 0x060083F2 RID: 33778 RVA: 0x0021A650 File Offset: 0x00218850
		public unsafe Vector3 defaultLocalPosition
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintPositionOffset.NativeFieldInfoPtr_defaultLocalPosition);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintPositionOffset.NativeFieldInfoPtr_defaultLocalPosition)) = value;
			}
		}

		// Token: 0x17002CD1 RID: 11473
		// (get) Token: 0x060083F3 RID: 33779 RVA: 0x0021A674 File Offset: 0x00218874
		// (set) Token: 0x060083F4 RID: 33780 RVA: 0x0021A69C File Offset: 0x0021889C
		public unsafe Vector3 lastLocalPosition
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintPositionOffset.NativeFieldInfoPtr_lastLocalPosition);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintPositionOffset.NativeFieldInfoPtr_lastLocalPosition)) = value;
			}
		}

		// Token: 0x17002CD2 RID: 11474
		// (get) Token: 0x060083F5 RID: 33781 RVA: 0x0021A6C0 File Offset: 0x002188C0
		// (set) Token: 0x060083F6 RID: 33782 RVA: 0x0021A6E8 File Offset: 0x002188E8
		public unsafe bool initiated
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintPositionOffset.NativeFieldInfoPtr_initiated);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintPositionOffset.NativeFieldInfoPtr_initiated)) = value;
			}
		}

		// Token: 0x04005844 RID: 22596
		private static readonly IntPtr NativeFieldInfoPtr_offset;

		// Token: 0x04005845 RID: 22597
		private static readonly IntPtr NativeFieldInfoPtr_defaultLocalPosition;

		// Token: 0x04005846 RID: 22598
		private static readonly IntPtr NativeFieldInfoPtr_lastLocalPosition;

		// Token: 0x04005847 RID: 22599
		private static readonly IntPtr NativeFieldInfoPtr_initiated;

		// Token: 0x04005848 RID: 22600
		private static readonly IntPtr NativeMethodInfoPtr_UpdateConstraint_Public_Virtual_Void_0;

		// Token: 0x04005849 RID: 22601
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x0400584A RID: 22602
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Transform_0;

		// Token: 0x0400584B RID: 22603
		private static readonly IntPtr NativeMethodInfoPtr_get_positionChanged_Private_get_Boolean_0;
	}
}
