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

namespace RootMotion.Demos
{
	// Token: 0x02000421 RID: 1057
	public class FBIKBendGoal : MonoBehaviour
	{
		// Token: 0x06007FEE RID: 32750 RVA: 0x0020B294 File Offset: 0x00209494
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624347, XrefRangeEnd = 624353, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FBIKBendGoal.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007FEF RID: 32751 RVA: 0x0020B2D8 File Offset: 0x002094D8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624353, XrefRangeEnd = 624361, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FBIKBendGoal.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007FF0 RID: 32752 RVA: 0x0020B31C File Offset: 0x0020951C
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe FBIKBendGoal()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FBIKBendGoal.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007FF1 RID: 32753 RVA: 0x0020B368 File Offset: 0x00209568
		// Note: this type is marked as 'beforefieldinit'.
		static FBIKBendGoal()
		{
			Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "FBIKBendGoal");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr);
			FBIKBendGoal.NativeFieldInfoPtr_ik = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr, "ik");
			FBIKBendGoal.NativeFieldInfoPtr_chain = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr, "chain");
			FBIKBendGoal.NativeFieldInfoPtr_weight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr, "weight");
			FBIKBendGoal.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr, 100673036);
			FBIKBendGoal.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr, 100673037);
			FBIKBendGoal.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr, 100673038);
		}

		// Token: 0x06007FF2 RID: 32754 RVA: 0x0000351C File Offset: 0x0000171C
		public FBIKBendGoal(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002B78 RID: 11128
		// (get) Token: 0x06007FF3 RID: 32755 RVA: 0x0020B410 File Offset: 0x00209610
		// (set) Token: 0x06007FF4 RID: 32756 RVA: 0x0020B444 File Offset: 0x00209644
		public unsafe FullBodyBipedIK ik
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FBIKBendGoal.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(FBIKBendGoal.NativeFieldInfoPtr_ik), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002B79 RID: 11129
		// (get) Token: 0x06007FF5 RID: 32757 RVA: 0x0020B46C File Offset: 0x0020966C
		// (set) Token: 0x06007FF6 RID: 32758 RVA: 0x0020B494 File Offset: 0x00209694
		public unsafe FullBodyBipedChain chain
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FBIKBendGoal.NativeFieldInfoPtr_chain);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FBIKBendGoal.NativeFieldInfoPtr_chain)) = value;
			}
		}

		// Token: 0x17002B7A RID: 11130
		// (get) Token: 0x06007FF7 RID: 32759 RVA: 0x0020B4B8 File Offset: 0x002096B8
		// (set) Token: 0x06007FF8 RID: 32760 RVA: 0x0020B4E0 File Offset: 0x002096E0
		public unsafe float weight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FBIKBendGoal.NativeFieldInfoPtr_weight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FBIKBendGoal.NativeFieldInfoPtr_weight)) = value;
			}
		}

		// Token: 0x040055E3 RID: 21987
		private static readonly IntPtr NativeFieldInfoPtr_ik;

		// Token: 0x040055E4 RID: 21988
		private static readonly IntPtr NativeFieldInfoPtr_chain;

		// Token: 0x040055E5 RID: 21989
		private static readonly IntPtr NativeFieldInfoPtr_weight;

		// Token: 0x040055E6 RID: 21990
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x040055E7 RID: 21991
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x040055E8 RID: 21992
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
