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

namespace RootMotion.FinalIK
{
	// Token: 0x02000403 RID: 1027
	[Serializable]
	public class ConstraintPositionOffset : Constraint
	{
		// Token: 0x06007B96 RID: 31638 RVA: 0x001F7680 File Offset: 0x001F5880
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 594151, XrefRangeEnd = 594164, 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: 0x06007B97 RID: 31639 RVA: 0x001F76D0 File Offset: 0x001F58D0
		[CallerCount(1642)]
		[CachedScanResults(RefRangeStart = 7417, RefRangeEnd = 9059, XrefRangeStart = 7417, XrefRangeEnd = 9059, 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: 0x06007B98 RID: 31640 RVA: 0x001F771C File Offset: 0x001F591C
		[CallerCount(124)]
		[CachedScanResults(RefRangeStart = 17067, RefRangeEnd = 17191, XrefRangeStart = 17067, XrefRangeEnd = 17191, 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: 0x17002A38 RID: 10808
		// (get) Token: 0x06007B99 RID: 31641 RVA: 0x001F7780 File Offset: 0x001F5980
		public unsafe bool positionChanged
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 594164, XrefRangeEnd = 594166, 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: 0x06007B9A RID: 31642 RVA: 0x001F77D0 File Offset: 0x001F59D0
		// 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, 100672578);
			ConstraintPositionOffset.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, 100672579);
			ConstraintPositionOffset.NativeMethodInfoPtr__ctor_Public_Void_Transform_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, 100672580);
			ConstraintPositionOffset.NativeMethodInfoPtr_get_positionChanged_Private_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintPositionOffset>.NativeClassPtr, 100672581);
		}

		// Token: 0x06007B9B RID: 31643 RVA: 0x001F7628 File Offset: 0x001F5828
		public ConstraintPositionOffset(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002A34 RID: 10804
		// (get) Token: 0x06007B9C RID: 31644 RVA: 0x001F78A0 File Offset: 0x001F5AA0
		// (set) Token: 0x06007B9D RID: 31645 RVA: 0x001F78C8 File Offset: 0x001F5AC8
		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: 0x17002A35 RID: 10805
		// (get) Token: 0x06007B9E RID: 31646 RVA: 0x001F78EC File Offset: 0x001F5AEC
		// (set) Token: 0x06007B9F RID: 31647 RVA: 0x001F7914 File Offset: 0x001F5B14
		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: 0x17002A36 RID: 10806
		// (get) Token: 0x06007BA0 RID: 31648 RVA: 0x001F7938 File Offset: 0x001F5B38
		// (set) Token: 0x06007BA1 RID: 31649 RVA: 0x001F7960 File Offset: 0x001F5B60
		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: 0x17002A37 RID: 10807
		// (get) Token: 0x06007BA2 RID: 31650 RVA: 0x001F7984 File Offset: 0x001F5B84
		// (set) Token: 0x06007BA3 RID: 31651 RVA: 0x001F79AC File Offset: 0x001F5BAC
		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: 0x0400529B RID: 21147
		private static readonly IntPtr NativeFieldInfoPtr_offset;

		// Token: 0x0400529C RID: 21148
		private static readonly IntPtr NativeFieldInfoPtr_defaultLocalPosition;

		// Token: 0x0400529D RID: 21149
		private static readonly IntPtr NativeFieldInfoPtr_lastLocalPosition;

		// Token: 0x0400529E RID: 21150
		private static readonly IntPtr NativeFieldInfoPtr_initiated;

		// Token: 0x0400529F RID: 21151
		private static readonly IntPtr NativeMethodInfoPtr_UpdateConstraint_Public_Virtual_Void_0;

		// Token: 0x040052A0 RID: 21152
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x040052A1 RID: 21153
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Transform_0;

		// Token: 0x040052A2 RID: 21154
		private static readonly IntPtr NativeMethodInfoPtr_get_positionChanged_Private_get_Boolean_0;
	}
}
