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

namespace RootMotion.Demos
{
	// Token: 0x020003C9 RID: 969
	public class FBIKBendGoal : MonoBehaviour
	{
		// Token: 0x0600779B RID: 30619 RVA: 0x001E8558 File Offset: 0x001E6758
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592041, XrefRangeEnd = 592047, 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: 0x0600779C RID: 30620 RVA: 0x001E859C File Offset: 0x001E679C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592047, XrefRangeEnd = 592055, 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: 0x0600779D RID: 30621 RVA: 0x001E85E0 File Offset: 0x001E67E0
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, 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: 0x0600779E RID: 30622 RVA: 0x001E862C File Offset: 0x001E682C
		// 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, 100672323);
			FBIKBendGoal.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr, 100672324);
			FBIKBendGoal.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FBIKBendGoal>.NativeClassPtr, 100672325);
		}

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

		// Token: 0x170028DD RID: 10461
		// (get) Token: 0x060077A0 RID: 30624 RVA: 0x001E86D4 File Offset: 0x001E68D4
		// (set) Token: 0x060077A1 RID: 30625 RVA: 0x001E8708 File Offset: 0x001E6908
		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: 0x170028DE RID: 10462
		// (get) Token: 0x060077A2 RID: 30626 RVA: 0x001E8730 File Offset: 0x001E6930
		// (set) Token: 0x060077A3 RID: 30627 RVA: 0x001E8758 File Offset: 0x001E6958
		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: 0x170028DF RID: 10463
		// (get) Token: 0x060077A4 RID: 30628 RVA: 0x001E877C File Offset: 0x001E697C
		// (set) Token: 0x060077A5 RID: 30629 RVA: 0x001E87A4 File Offset: 0x001E69A4
		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: 0x0400503A RID: 20538
		private static readonly IntPtr NativeFieldInfoPtr_ik;

		// Token: 0x0400503B RID: 20539
		private static readonly IntPtr NativeFieldInfoPtr_chain;

		// Token: 0x0400503C RID: 20540
		private static readonly IntPtr NativeFieldInfoPtr_weight;

		// Token: 0x0400503D RID: 20541
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x0400503E RID: 20542
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x0400503F RID: 20543
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
