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

namespace RootMotion.Demos
{
	// Token: 0x020003F1 RID: 1009
	public class CharacterAnimationBase : MonoBehaviour
	{
		// Token: 0x06007A1B RID: 31259 RVA: 0x001F19F8 File Offset: 0x001EFBF8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593337, XrefRangeEnd = 593339, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe virtual Vector3 GetPivotPoint()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), CharacterAnimationBase.NativeMethodInfoPtr_GetPivotPoint_Public_Virtual_New_Vector3_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x170029B7 RID: 10679
		// (get) Token: 0x06007A1C RID: 31260 RVA: 0x001F1A54 File Offset: 0x001EFC54
		public unsafe virtual bool animationGrounded
		{
			[CallerCount(16)]
			[CachedScanResults(RefRangeStart = 16502, RefRangeEnd = 16518, XrefRangeStart = 16502, XrefRangeEnd = 16518, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), CharacterAnimationBase.NativeMethodInfoPtr_get_animationGrounded_Public_Virtual_New_get_Boolean_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06007A1D RID: 31261 RVA: 0x001F1AB0 File Offset: 0x001EFCB0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593339, XrefRangeEnd = 593342, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe float GetAngleFromForward(Vector3 worldDirection)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref worldDirection;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterAnimationBase.NativeMethodInfoPtr_GetAngleFromForward_Public_Single_Vector3_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06007A1E RID: 31262 RVA: 0x001F1B14 File Offset: 0x001EFD14
		[CallerCount(3)]
		[CachedScanResults(RefRangeStart = 593374, RefRangeEnd = 593377, XrefRangeStart = 593342, XrefRangeEnd = 593374, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe virtual 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), CharacterAnimationBase.NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007A1F RID: 31263 RVA: 0x001F1B64 File Offset: 0x001EFD64
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 593396, RefRangeEnd = 593397, XrefRangeStart = 593377, XrefRangeEnd = 593396, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe virtual 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), CharacterAnimationBase.NativeMethodInfoPtr_LateUpdate_Protected_Virtual_New_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007A20 RID: 31264 RVA: 0x001F1BB4 File Offset: 0x001EFDB4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593397, XrefRangeEnd = 593398, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe CharacterAnimationBase()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterAnimationBase.NativeMethodInfoPtr__ctor_Protected_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007A21 RID: 31265 RVA: 0x001F1C00 File Offset: 0x001EFE00
		// Note: this type is marked as 'beforefieldinit'.
		static CharacterAnimationBase()
		{
			Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "CharacterAnimationBase");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr);
			CharacterAnimationBase.NativeFieldInfoPtr_smoothFollow = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, "smoothFollow");
			CharacterAnimationBase.NativeFieldInfoPtr_smoothFollowSpeed = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, "smoothFollowSpeed");
			CharacterAnimationBase.NativeFieldInfoPtr_lastPosition = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, "lastPosition");
			CharacterAnimationBase.NativeFieldInfoPtr_localPosition = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, "localPosition");
			CharacterAnimationBase.NativeFieldInfoPtr_localRotation = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, "localRotation");
			CharacterAnimationBase.NativeFieldInfoPtr_lastRotation = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, "lastRotation");
			CharacterAnimationBase.NativeMethodInfoPtr_GetPivotPoint_Public_Virtual_New_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100672479);
			CharacterAnimationBase.NativeMethodInfoPtr_get_animationGrounded_Public_Virtual_New_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100672480);
			CharacterAnimationBase.NativeMethodInfoPtr_GetAngleFromForward_Public_Single_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100672481);
			CharacterAnimationBase.NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100672482);
			CharacterAnimationBase.NativeMethodInfoPtr_LateUpdate_Protected_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100672483);
			CharacterAnimationBase.NativeMethodInfoPtr__ctor_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100672484);
		}

		// Token: 0x06007A22 RID: 31266 RVA: 0x0000351C File Offset: 0x0000171C
		public CharacterAnimationBase(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170029B1 RID: 10673
		// (get) Token: 0x06007A23 RID: 31267 RVA: 0x001F1D20 File Offset: 0x001EFF20
		// (set) Token: 0x06007A24 RID: 31268 RVA: 0x001F1D48 File Offset: 0x001EFF48
		public unsafe bool smoothFollow
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_smoothFollow);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_smoothFollow)) = value;
			}
		}

		// Token: 0x170029B2 RID: 10674
		// (get) Token: 0x06007A25 RID: 31269 RVA: 0x001F1D6C File Offset: 0x001EFF6C
		// (set) Token: 0x06007A26 RID: 31270 RVA: 0x001F1D94 File Offset: 0x001EFF94
		public unsafe float smoothFollowSpeed
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_smoothFollowSpeed);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_smoothFollowSpeed)) = value;
			}
		}

		// Token: 0x170029B3 RID: 10675
		// (get) Token: 0x06007A27 RID: 31271 RVA: 0x001F1DB8 File Offset: 0x001EFFB8
		// (set) Token: 0x06007A28 RID: 31272 RVA: 0x001F1DE0 File Offset: 0x001EFFE0
		public unsafe Vector3 lastPosition
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_lastPosition);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_lastPosition)) = value;
			}
		}

		// Token: 0x170029B4 RID: 10676
		// (get) Token: 0x06007A29 RID: 31273 RVA: 0x001F1E04 File Offset: 0x001F0004
		// (set) Token: 0x06007A2A RID: 31274 RVA: 0x001F1E2C File Offset: 0x001F002C
		public unsafe Vector3 localPosition
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_localPosition);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_localPosition)) = value;
			}
		}

		// Token: 0x170029B5 RID: 10677
		// (get) Token: 0x06007A2B RID: 31275 RVA: 0x001F1E50 File Offset: 0x001F0050
		// (set) Token: 0x06007A2C RID: 31276 RVA: 0x001F1E78 File Offset: 0x001F0078
		public unsafe Quaternion localRotation
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_localRotation);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_localRotation)) = value;
			}
		}

		// Token: 0x170029B6 RID: 10678
		// (get) Token: 0x06007A2D RID: 31277 RVA: 0x001F1E9C File Offset: 0x001F009C
		// (set) Token: 0x06007A2E RID: 31278 RVA: 0x001F1EC4 File Offset: 0x001F00C4
		public unsafe Quaternion lastRotation
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_lastRotation);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterAnimationBase.NativeFieldInfoPtr_lastRotation)) = value;
			}
		}

		// Token: 0x040051A0 RID: 20896
		private static readonly IntPtr NativeFieldInfoPtr_smoothFollow;

		// Token: 0x040051A1 RID: 20897
		private static readonly IntPtr NativeFieldInfoPtr_smoothFollowSpeed;

		// Token: 0x040051A2 RID: 20898
		private static readonly IntPtr NativeFieldInfoPtr_lastPosition;

		// Token: 0x040051A3 RID: 20899
		private static readonly IntPtr NativeFieldInfoPtr_localPosition;

		// Token: 0x040051A4 RID: 20900
		private static readonly IntPtr NativeFieldInfoPtr_localRotation;

		// Token: 0x040051A5 RID: 20901
		private static readonly IntPtr NativeFieldInfoPtr_lastRotation;

		// Token: 0x040051A6 RID: 20902
		private static readonly IntPtr NativeMethodInfoPtr_GetPivotPoint_Public_Virtual_New_Vector3_0;

		// Token: 0x040051A7 RID: 20903
		private static readonly IntPtr NativeMethodInfoPtr_get_animationGrounded_Public_Virtual_New_get_Boolean_0;

		// Token: 0x040051A8 RID: 20904
		private static readonly IntPtr NativeMethodInfoPtr_GetAngleFromForward_Public_Single_Vector3_0;

		// Token: 0x040051A9 RID: 20905
		private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0;

		// Token: 0x040051AA RID: 20906
		private static readonly IntPtr NativeMethodInfoPtr_LateUpdate_Protected_Virtual_New_Void_0;

		// Token: 0x040051AB RID: 20907
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Protected_Void_0;
	}
}
