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

namespace RootMotion.FinalIK
{
	// Token: 0x02000402 RID: 1026
	[Serializable]
	public class ConstraintPosition : Constraint
	{
		// Token: 0x06007B8F RID: 31631 RVA: 0x001F74A8 File Offset: 0x001F56A8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 594144, XrefRangeEnd = 594151, 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), ConstraintPosition.NativeMethodInfoPtr_UpdateConstraint_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007B90 RID: 31632 RVA: 0x001F74F8 File Offset: 0x001F56F8
		[CallerCount(1642)]
		[CachedScanResults(RefRangeStart = 7417, RefRangeEnd = 9059, XrefRangeStart = 7417, XrefRangeEnd = 9059, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ConstraintPosition()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ConstraintPosition>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ConstraintPosition.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007B91 RID: 31633 RVA: 0x001F7544 File Offset: 0x001F5744
		[CallerCount(124)]
		[CachedScanResults(RefRangeStart = 17067, RefRangeEnd = 17191, XrefRangeStart = 17067, XrefRangeEnd = 17191, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ConstraintPosition(Transform transform)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ConstraintPosition>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(transform);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ConstraintPosition.NativeMethodInfoPtr__ctor_Public_Void_Transform_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06007B92 RID: 31634 RVA: 0x001F75A8 File Offset: 0x001F57A8
		// Note: this type is marked as 'beforefieldinit'.
		static ConstraintPosition()
		{
			Il2CppClassPointerStore<ConstraintPosition>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "ConstraintPosition");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ConstraintPosition>.NativeClassPtr);
			ConstraintPosition.NativeFieldInfoPtr_position = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ConstraintPosition>.NativeClassPtr, "position");
			ConstraintPosition.NativeMethodInfoPtr_UpdateConstraint_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintPosition>.NativeClassPtr, 100672575);
			ConstraintPosition.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintPosition>.NativeClassPtr, 100672576);
			ConstraintPosition.NativeMethodInfoPtr__ctor_Public_Void_Transform_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintPosition>.NativeClassPtr, 100672577);
		}

		// Token: 0x06007B93 RID: 31635 RVA: 0x001F7628 File Offset: 0x001F5828
		public ConstraintPosition(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002A33 RID: 10803
		// (get) Token: 0x06007B94 RID: 31636 RVA: 0x001F7634 File Offset: 0x001F5834
		// (set) Token: 0x06007B95 RID: 31637 RVA: 0x001F765C File Offset: 0x001F585C
		public unsafe Vector3 position
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintPosition.NativeFieldInfoPtr_position);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintPosition.NativeFieldInfoPtr_position)) = value;
			}
		}

		// Token: 0x04005297 RID: 21143
		private static readonly IntPtr NativeFieldInfoPtr_position;

		// Token: 0x04005298 RID: 21144
		private static readonly IntPtr NativeMethodInfoPtr_UpdateConstraint_Public_Virtual_Void_0;

		// Token: 0x04005299 RID: 21145
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x0400529A RID: 21146
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Transform_0;
	}
}
