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

namespace RootMotion.Demos
{
	// Token: 0x0200041B RID: 1051
	public class CharacterAnimationThirdPersonIK : CharacterAnimationThirdPerson
	{
		// Token: 0x06007F87 RID: 32647 RVA: 0x00209B6C File Offset: 0x00207D6C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624141, XrefRangeEnd = 624153, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), CharacterAnimationThirdPersonIK.NativeMethodInfoPtr_Start_Protected_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007F88 RID: 32648 RVA: 0x00209BBC File Offset: 0x00207DBC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624153, XrefRangeEnd = 624172, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void LateUpdate()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), CharacterAnimationThirdPersonIK.NativeMethodInfoPtr_LateUpdate_Protected_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007F89 RID: 32649 RVA: 0x00209C0C File Offset: 0x00207E0C
		[CallerCount(5)]
		[CachedScanResults(RefRangeStart = 624176, RefRangeEnd = 624181, XrefRangeStart = 624172, XrefRangeEnd = 624176, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void RotateEffector(IKEffector effector, Quaternion rotation, float mlp)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(effector);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref rotation;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref mlp;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterAnimationThirdPersonIK.NativeMethodInfoPtr_RotateEffector_Private_Void_IKEffector_Quaternion_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007F8A RID: 32650 RVA: 0x00209C8C File Offset: 0x00207E8C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624181, XrefRangeEnd = 624182, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe CharacterAnimationThirdPersonIK()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<CharacterAnimationThirdPersonIK>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterAnimationThirdPersonIK.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007F8B RID: 32651 RVA: 0x00209CD8 File Offset: 0x00207ED8
		// Note: this type is marked as 'beforefieldinit'.
		static CharacterAnimationThirdPersonIK()
		{
			Il2CppClassPointerStore<CharacterAnimationThirdPersonIK>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "CharacterAnimationThirdPersonIK");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<CharacterAnimationThirdPersonIK>.NativeClassPtr);
			CharacterAnimationThirdPersonIK.NativeFieldInfoPtr_ik = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterAnimationThirdPersonIK>.NativeClassPtr, "ik");
			CharacterAnimationThirdPersonIK.NativeMethodInfoPtr_Start_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationThirdPersonIK>.NativeClassPtr, 100673015);
			CharacterAnimationThirdPersonIK.NativeMethodInfoPtr_LateUpdate_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationThirdPersonIK>.NativeClassPtr, 100673016);
			CharacterAnimationThirdPersonIK.NativeMethodInfoPtr_RotateEffector_Private_Void_IKEffector_Quaternion_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationThirdPersonIK>.NativeClassPtr, 100673017);
			CharacterAnimationThirdPersonIK.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationThirdPersonIK>.NativeClassPtr, 100673018);
		}

		// Token: 0x06007F8C RID: 32652 RVA: 0x00209D6C File Offset: 0x00207F6C
		public CharacterAnimationThirdPersonIK(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002B53 RID: 11091
		// (get) Token: 0x06007F8D RID: 32653 RVA: 0x00209D78 File Offset: 0x00207F78
		// (set) Token: 0x06007F8E RID: 32654 RVA: 0x00209DAC File Offset: 0x00207FAC
		public unsafe FullBodyBipedIK ik
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationThirdPersonIK.NativeFieldInfoPtr_ik);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new FullBodyBipedIK(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationThirdPersonIK.NativeFieldInfoPtr_ik), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x040055AB RID: 21931
		private static readonly IntPtr NativeFieldInfoPtr_ik;

		// Token: 0x040055AC RID: 21932
		private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Virtual_Void_0;

		// Token: 0x040055AD RID: 21933
		private static readonly IntPtr NativeMethodInfoPtr_LateUpdate_Protected_Virtual_Void_0;

		// Token: 0x040055AE RID: 21934
		private static readonly IntPtr NativeMethodInfoPtr_RotateEffector_Private_Void_IKEffector_Quaternion_Single_0;

		// Token: 0x040055AF RID: 21935
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
