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

namespace RootMotion.FinalIK
{
	// Token: 0x02000404 RID: 1028
	[Serializable]
	public class ConstraintRotation : Constraint
	{
		// Token: 0x06007BA4 RID: 31652 RVA: 0x001F79D0 File Offset: 0x001F5BD0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 594166, XrefRangeEnd = 594173, 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), ConstraintRotation.NativeMethodInfoPtr_UpdateConstraint_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

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

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

		// Token: 0x06007BA7 RID: 31655 RVA: 0x001F7AD0 File Offset: 0x001F5CD0
		// Note: this type is marked as 'beforefieldinit'.
		static ConstraintRotation()
		{
			Il2CppClassPointerStore<ConstraintRotation>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "ConstraintRotation");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ConstraintRotation>.NativeClassPtr);
			ConstraintRotation.NativeFieldInfoPtr_rotation = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ConstraintRotation>.NativeClassPtr, "rotation");
			ConstraintRotation.NativeMethodInfoPtr_UpdateConstraint_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintRotation>.NativeClassPtr, 100672582);
			ConstraintRotation.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintRotation>.NativeClassPtr, 100672583);
			ConstraintRotation.NativeMethodInfoPtr__ctor_Public_Void_Transform_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ConstraintRotation>.NativeClassPtr, 100672584);
		}

		// Token: 0x06007BA8 RID: 31656 RVA: 0x001F7628 File Offset: 0x001F5828
		public ConstraintRotation(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002A39 RID: 10809
		// (get) Token: 0x06007BA9 RID: 31657 RVA: 0x001F7B50 File Offset: 0x001F5D50
		// (set) Token: 0x06007BAA RID: 31658 RVA: 0x001F7B78 File Offset: 0x001F5D78
		public unsafe Quaternion rotation
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintRotation.NativeFieldInfoPtr_rotation);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ConstraintRotation.NativeFieldInfoPtr_rotation)) = value;
			}
		}

		// Token: 0x040052A3 RID: 21155
		private static readonly IntPtr NativeFieldInfoPtr_rotation;

		// Token: 0x040052A4 RID: 21156
		private static readonly IntPtr NativeMethodInfoPtr_UpdateConstraint_Public_Virtual_Void_0;

		// Token: 0x040052A5 RID: 21157
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x040052A6 RID: 21158
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Transform_0;
	}
}
