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

namespace RootMotion.FinalIK
{
	// Token: 0x02000459 RID: 1113
	[Serializable]
	public class Constraint : Il2CppSystem.Object
	{
		// Token: 0x17002CCD RID: 11469
		// (get) Token: 0x060083D9 RID: 33753 RVA: 0x00219FBC File Offset: 0x002181BC
		public unsafe bool isValid
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626454, XrefRangeEnd = 626458, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Constraint.NativeMethodInfoPtr_get_isValid_Public_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x060083DA RID: 33754 RVA: 0x0021A00C File Offset: 0x0021820C
		[CallerCount(0)]
		public unsafe virtual 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), Constraint.NativeMethodInfoPtr_UpdateConstraint_Public_Abstract_Virtual_New_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

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

		// Token: 0x060083DC RID: 33756 RVA: 0x0021A0A8 File Offset: 0x002182A8
		// Note: this type is marked as 'beforefieldinit'.
		static Constraint()
		{
			Il2CppClassPointerStore<Constraint>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "Constraint");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Constraint>.NativeClassPtr);
			Constraint.NativeFieldInfoPtr_transform = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraint>.NativeClassPtr, "transform");
			Constraint.NativeFieldInfoPtr_weight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraint>.NativeClassPtr, "weight");
			Constraint.NativeMethodInfoPtr_get_isValid_Public_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Constraint>.NativeClassPtr, 100673285);
			Constraint.NativeMethodInfoPtr_UpdateConstraint_Public_Abstract_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Constraint>.NativeClassPtr, 100673286);
			Constraint.NativeMethodInfoPtr__ctor_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Constraint>.NativeClassPtr, 100673287);
		}

		// Token: 0x060083DD RID: 33757 RVA: 0x0000A74C File Offset: 0x0000894C
		public Constraint(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002CCB RID: 11467
		// (get) Token: 0x060083DE RID: 33758 RVA: 0x0021A13C File Offset: 0x0021833C
		// (set) Token: 0x060083DF RID: 33759 RVA: 0x0021A170 File Offset: 0x00218370
		public unsafe Transform transform
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraint.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(Constraint.NativeFieldInfoPtr_transform), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002CCC RID: 11468
		// (get) Token: 0x060083E0 RID: 33760 RVA: 0x0021A198 File Offset: 0x00218398
		// (set) Token: 0x060083E1 RID: 33761 RVA: 0x0021A1C0 File Offset: 0x002183C0
		public unsafe float weight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraint.NativeFieldInfoPtr_weight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraint.NativeFieldInfoPtr_weight)) = value;
			}
		}

		// Token: 0x0400583B RID: 22587
		private static readonly IntPtr NativeFieldInfoPtr_transform;

		// Token: 0x0400583C RID: 22588
		private static readonly IntPtr NativeFieldInfoPtr_weight;

		// Token: 0x0400583D RID: 22589
		private static readonly IntPtr NativeMethodInfoPtr_get_isValid_Public_get_Boolean_0;

		// Token: 0x0400583E RID: 22590
		private static readonly IntPtr NativeMethodInfoPtr_UpdateConstraint_Public_Abstract_Virtual_New_Void_0;

		// Token: 0x0400583F RID: 22591
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Protected_Void_0;
	}
}
