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

namespace RootMotion.Demos
{
	// Token: 0x02000448 RID: 1096
	public class VRIKPlatform : MonoBehaviour
	{
		// Token: 0x06008263 RID: 33379 RVA: 0x002144C4 File Offset: 0x002126C4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625632, XrefRangeEnd = 625636, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VRIKPlatform.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008264 RID: 33380 RVA: 0x00214508 File Offset: 0x00212708
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625636, XrefRangeEnd = 625649, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VRIKPlatform.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008265 RID: 33381 RVA: 0x0021454C File Offset: 0x0021274C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625649, XrefRangeEnd = 625651, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe VRIKPlatform()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<VRIKPlatform>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VRIKPlatform.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008266 RID: 33382 RVA: 0x00214598 File Offset: 0x00212798
		// Note: this type is marked as 'beforefieldinit'.
		static VRIKPlatform()
		{
			Il2CppClassPointerStore<VRIKPlatform>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "VRIKPlatform");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<VRIKPlatform>.NativeClassPtr);
			VRIKPlatform.NativeFieldInfoPtr_ik = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VRIKPlatform>.NativeClassPtr, "ik");
			VRIKPlatform.NativeFieldInfoPtr_lastPosition = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VRIKPlatform>.NativeClassPtr, "lastPosition");
			VRIKPlatform.NativeFieldInfoPtr_lastRotation = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VRIKPlatform>.NativeClassPtr, "lastRotation");
			VRIKPlatform.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VRIKPlatform>.NativeClassPtr, 100673189);
			VRIKPlatform.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VRIKPlatform>.NativeClassPtr, 100673190);
			VRIKPlatform.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VRIKPlatform>.NativeClassPtr, 100673191);
		}

		// Token: 0x06008267 RID: 33383 RVA: 0x0000351C File Offset: 0x0000171C
		public VRIKPlatform(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002C49 RID: 11337
		// (get) Token: 0x06008268 RID: 33384 RVA: 0x00214640 File Offset: 0x00212840
		// (set) Token: 0x06008269 RID: 33385 RVA: 0x00214674 File Offset: 0x00212874
		public unsafe VRIK ik
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VRIKPlatform.NativeFieldInfoPtr_ik);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new VRIK(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(VRIKPlatform.NativeFieldInfoPtr_ik), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002C4A RID: 11338
		// (get) Token: 0x0600826A RID: 33386 RVA: 0x0021469C File Offset: 0x0021289C
		// (set) Token: 0x0600826B RID: 33387 RVA: 0x002146C4 File Offset: 0x002128C4
		public unsafe Vector3 lastPosition
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VRIKPlatform.NativeFieldInfoPtr_lastPosition);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VRIKPlatform.NativeFieldInfoPtr_lastPosition)) = value;
			}
		}

		// Token: 0x17002C4B RID: 11339
		// (get) Token: 0x0600826C RID: 33388 RVA: 0x002146E8 File Offset: 0x002128E8
		// (set) Token: 0x0600826D RID: 33389 RVA: 0x00214710 File Offset: 0x00212910
		public unsafe Quaternion lastRotation
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VRIKPlatform.NativeFieldInfoPtr_lastRotation);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VRIKPlatform.NativeFieldInfoPtr_lastRotation)) = value;
			}
		}

		// Token: 0x04005743 RID: 22339
		private static readonly IntPtr NativeFieldInfoPtr_ik;

		// Token: 0x04005744 RID: 22340
		private static readonly IntPtr NativeFieldInfoPtr_lastPosition;

		// Token: 0x04005745 RID: 22341
		private static readonly IntPtr NativeFieldInfoPtr_lastRotation;

		// Token: 0x04005746 RID: 22342
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04005747 RID: 22343
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04005748 RID: 22344
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
