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

namespace RootMotion.Demos
{
	// Token: 0x02000449 RID: 1097
	public class CharacterAnimationBase : MonoBehaviour
	{
		// Token: 0x0600826E RID: 33390 RVA: 0x00214734 File Offset: 0x00212934
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625651, XrefRangeEnd = 625653, 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: 0x17002C52 RID: 11346
		// (get) Token: 0x0600826F RID: 33391 RVA: 0x00214790 File Offset: 0x00212990
		public unsafe virtual bool animationGrounded
		{
			[CallerCount(16)]
			[CachedScanResults(RefRangeStart = 16399, RefRangeEnd = 16415, XrefRangeStart = 16399, XrefRangeEnd = 16415, 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: 0x06008270 RID: 33392 RVA: 0x002147EC File Offset: 0x002129EC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625653, XrefRangeEnd = 625656, 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: 0x06008271 RID: 33393 RVA: 0x00214850 File Offset: 0x00212A50
		[CallerCount(3)]
		[CachedScanResults(RefRangeStart = 625688, RefRangeEnd = 625691, XrefRangeStart = 625656, XrefRangeEnd = 625688, 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: 0x06008272 RID: 33394 RVA: 0x002148A0 File Offset: 0x00212AA0
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 625710, RefRangeEnd = 625711, XrefRangeStart = 625691, XrefRangeEnd = 625710, 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: 0x06008273 RID: 33395 RVA: 0x002148F0 File Offset: 0x00212AF0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625711, XrefRangeEnd = 625712, 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: 0x06008274 RID: 33396 RVA: 0x0021493C File Offset: 0x00212B3C
		// 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, 100673192);
			CharacterAnimationBase.NativeMethodInfoPtr_get_animationGrounded_Public_Virtual_New_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100673193);
			CharacterAnimationBase.NativeMethodInfoPtr_GetAngleFromForward_Public_Single_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100673194);
			CharacterAnimationBase.NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100673195);
			CharacterAnimationBase.NativeMethodInfoPtr_LateUpdate_Protected_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100673196);
			CharacterAnimationBase.NativeMethodInfoPtr__ctor_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterAnimationBase>.NativeClassPtr, 100673197);
		}

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

		// Token: 0x17002C4C RID: 11340
		// (get) Token: 0x06008276 RID: 33398 RVA: 0x00214A5C File Offset: 0x00212C5C
		// (set) Token: 0x06008277 RID: 33399 RVA: 0x00214A84 File Offset: 0x00212C84
		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: 0x17002C4D RID: 11341
		// (get) Token: 0x06008278 RID: 33400 RVA: 0x00214AA8 File Offset: 0x00212CA8
		// (set) Token: 0x06008279 RID: 33401 RVA: 0x00214AD0 File Offset: 0x00212CD0
		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: 0x17002C4E RID: 11342
		// (get) Token: 0x0600827A RID: 33402 RVA: 0x00214AF4 File Offset: 0x00212CF4
		// (set) Token: 0x0600827B RID: 33403 RVA: 0x00214B1C File Offset: 0x00212D1C
		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: 0x17002C4F RID: 11343
		// (get) Token: 0x0600827C RID: 33404 RVA: 0x00214B40 File Offset: 0x00212D40
		// (set) Token: 0x0600827D RID: 33405 RVA: 0x00214B68 File Offset: 0x00212D68
		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: 0x17002C50 RID: 11344
		// (get) Token: 0x0600827E RID: 33406 RVA: 0x00214B8C File Offset: 0x00212D8C
		// (set) Token: 0x0600827F RID: 33407 RVA: 0x00214BB4 File Offset: 0x00212DB4
		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: 0x17002C51 RID: 11345
		// (get) Token: 0x06008280 RID: 33408 RVA: 0x00214BD8 File Offset: 0x00212DD8
		// (set) Token: 0x06008281 RID: 33409 RVA: 0x00214C00 File Offset: 0x00212E00
		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: 0x04005749 RID: 22345
		private static readonly IntPtr NativeFieldInfoPtr_smoothFollow;

		// Token: 0x0400574A RID: 22346
		private static readonly IntPtr NativeFieldInfoPtr_smoothFollowSpeed;

		// Token: 0x0400574B RID: 22347
		private static readonly IntPtr NativeFieldInfoPtr_lastPosition;

		// Token: 0x0400574C RID: 22348
		private static readonly IntPtr NativeFieldInfoPtr_localPosition;

		// Token: 0x0400574D RID: 22349
		private static readonly IntPtr NativeFieldInfoPtr_localRotation;

		// Token: 0x0400574E RID: 22350
		private static readonly IntPtr NativeFieldInfoPtr_lastRotation;

		// Token: 0x0400574F RID: 22351
		private static readonly IntPtr NativeMethodInfoPtr_GetPivotPoint_Public_Virtual_New_Vector3_0;

		// Token: 0x04005750 RID: 22352
		private static readonly IntPtr NativeMethodInfoPtr_get_animationGrounded_Public_Virtual_New_get_Boolean_0;

		// Token: 0x04005751 RID: 22353
		private static readonly IntPtr NativeMethodInfoPtr_GetAngleFromForward_Public_Single_Vector3_0;

		// Token: 0x04005752 RID: 22354
		private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0;

		// Token: 0x04005753 RID: 22355
		private static readonly IntPtr NativeMethodInfoPtr_LateUpdate_Protected_Virtual_New_Void_0;

		// Token: 0x04005754 RID: 22356
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Protected_Void_0;
	}
}
