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

namespace RootMotion.FinalIK
{
	// Token: 0x02000406 RID: 1030
	[Serializable]
	public class Constraints : Il2CppSystem.Object
	{
		// Token: 0x06007BBD RID: 31677 RVA: 0x001F7FAC File Offset: 0x001F61AC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 594189, XrefRangeEnd = 594193, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe bool IsValid()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Constraints.NativeMethodInfoPtr_IsValid_Public_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06007BBE RID: 31678 RVA: 0x001F7FFC File Offset: 0x001F61FC
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 594196, RefRangeEnd = 594197, XrefRangeStart = 594193, XrefRangeEnd = 594196, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Initiate(Transform transform)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(transform);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Constraints.NativeMethodInfoPtr_Initiate_Public_Void_Transform_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06007BBF RID: 31679 RVA: 0x001F8058 File Offset: 0x001F6258
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 594223, RefRangeEnd = 594224, XrefRangeStart = 594197, XrefRangeEnd = 594223, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Constraints.NativeMethodInfoPtr_Update_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

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

		// Token: 0x06007BC1 RID: 31681 RVA: 0x001F80E8 File Offset: 0x001F62E8
		// Note: this type is marked as 'beforefieldinit'.
		static Constraints()
		{
			Il2CppClassPointerStore<Constraints>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "Constraints");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Constraints>.NativeClassPtr);
			Constraints.NativeFieldInfoPtr_transform = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraints>.NativeClassPtr, "transform");
			Constraints.NativeFieldInfoPtr_target = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraints>.NativeClassPtr, "target");
			Constraints.NativeFieldInfoPtr_positionOffset = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraints>.NativeClassPtr, "positionOffset");
			Constraints.NativeFieldInfoPtr_position = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraints>.NativeClassPtr, "position");
			Constraints.NativeFieldInfoPtr_positionWeight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraints>.NativeClassPtr, "positionWeight");
			Constraints.NativeFieldInfoPtr_rotationOffset = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraints>.NativeClassPtr, "rotationOffset");
			Constraints.NativeFieldInfoPtr_rotation = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraints>.NativeClassPtr, "rotation");
			Constraints.NativeFieldInfoPtr_rotationWeight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraints>.NativeClassPtr, "rotationWeight");
			Constraints.NativeMethodInfoPtr_IsValid_Public_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Constraints>.NativeClassPtr, 100672589);
			Constraints.NativeMethodInfoPtr_Initiate_Public_Void_Transform_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Constraints>.NativeClassPtr, 100672590);
			Constraints.NativeMethodInfoPtr_Update_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Constraints>.NativeClassPtr, 100672591);
			Constraints.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Constraints>.NativeClassPtr, 100672592);
		}

		// Token: 0x06007BC2 RID: 31682 RVA: 0x0000A688 File Offset: 0x00008888
		public Constraints(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002A41 RID: 10817
		// (get) Token: 0x06007BC3 RID: 31683 RVA: 0x001F8208 File Offset: 0x001F6408
		// (set) Token: 0x06007BC4 RID: 31684 RVA: 0x001F823C File Offset: 0x001F643C
		public unsafe Transform transform
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_transform);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Transform(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_transform), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002A42 RID: 10818
		// (get) Token: 0x06007BC5 RID: 31685 RVA: 0x001F8264 File Offset: 0x001F6464
		// (set) Token: 0x06007BC6 RID: 31686 RVA: 0x001F8298 File Offset: 0x001F6498
		public unsafe Transform target
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_target);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Transform(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_target), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002A43 RID: 10819
		// (get) Token: 0x06007BC7 RID: 31687 RVA: 0x001F82C0 File Offset: 0x001F64C0
		// (set) Token: 0x06007BC8 RID: 31688 RVA: 0x001F82E8 File Offset: 0x001F64E8
		public unsafe Vector3 positionOffset
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_positionOffset);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_positionOffset)) = value;
			}
		}

		// Token: 0x17002A44 RID: 10820
		// (get) Token: 0x06007BC9 RID: 31689 RVA: 0x001F830C File Offset: 0x001F650C
		// (set) Token: 0x06007BCA RID: 31690 RVA: 0x001F8334 File Offset: 0x001F6534
		public unsafe Vector3 position
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_position);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_position)) = value;
			}
		}

		// Token: 0x17002A45 RID: 10821
		// (get) Token: 0x06007BCB RID: 31691 RVA: 0x001F8358 File Offset: 0x001F6558
		// (set) Token: 0x06007BCC RID: 31692 RVA: 0x001F8380 File Offset: 0x001F6580
		public unsafe float positionWeight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_positionWeight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_positionWeight)) = value;
			}
		}

		// Token: 0x17002A46 RID: 10822
		// (get) Token: 0x06007BCD RID: 31693 RVA: 0x001F83A4 File Offset: 0x001F65A4
		// (set) Token: 0x06007BCE RID: 31694 RVA: 0x001F83CC File Offset: 0x001F65CC
		public unsafe Vector3 rotationOffset
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_rotationOffset);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_rotationOffset)) = value;
			}
		}

		// Token: 0x17002A47 RID: 10823
		// (get) Token: 0x06007BCF RID: 31695 RVA: 0x001F83F0 File Offset: 0x001F65F0
		// (set) Token: 0x06007BD0 RID: 31696 RVA: 0x001F8418 File Offset: 0x001F6618
		public unsafe Vector3 rotation
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_rotation);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_rotation)) = value;
			}
		}

		// Token: 0x17002A48 RID: 10824
		// (get) Token: 0x06007BD1 RID: 31697 RVA: 0x001F843C File Offset: 0x001F663C
		// (set) Token: 0x06007BD2 RID: 31698 RVA: 0x001F8464 File Offset: 0x001F6664
		public unsafe float rotationWeight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_rotationWeight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraints.NativeFieldInfoPtr_rotationWeight)) = value;
			}
		}

		// Token: 0x040052B1 RID: 21169
		private static readonly IntPtr NativeFieldInfoPtr_transform;

		// Token: 0x040052B2 RID: 21170
		private static readonly IntPtr NativeFieldInfoPtr_target;

		// Token: 0x040052B3 RID: 21171
		private static readonly IntPtr NativeFieldInfoPtr_positionOffset;

		// Token: 0x040052B4 RID: 21172
		private static readonly IntPtr NativeFieldInfoPtr_position;

		// Token: 0x040052B5 RID: 21173
		private static readonly IntPtr NativeFieldInfoPtr_positionWeight;

		// Token: 0x040052B6 RID: 21174
		private static readonly IntPtr NativeFieldInfoPtr_rotationOffset;

		// Token: 0x040052B7 RID: 21175
		private static readonly IntPtr NativeFieldInfoPtr_rotation;

		// Token: 0x040052B8 RID: 21176
		private static readonly IntPtr NativeFieldInfoPtr_rotationWeight;

		// Token: 0x040052B9 RID: 21177
		private static readonly IntPtr NativeMethodInfoPtr_IsValid_Public_Boolean_0;

		// Token: 0x040052BA RID: 21178
		private static readonly IntPtr NativeMethodInfoPtr_Initiate_Public_Void_Transform_0;

		// Token: 0x040052BB RID: 21179
		private static readonly IntPtr NativeMethodInfoPtr_Update_Public_Void_0;

		// Token: 0x040052BC RID: 21180
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
