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

namespace RootMotion.Demos
{
	// Token: 0x020003ED RID: 1005
	public class BendGoal : MonoBehaviour
	{
		// Token: 0x060079F7 RID: 31223 RVA: 0x001F11D4 File Offset: 0x001EF3D4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593288, XrefRangeEnd = 593294, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BendGoal.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060079F8 RID: 31224 RVA: 0x001F1218 File Offset: 0x001EF418
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593294, XrefRangeEnd = 593301, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void LateUpdate()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BendGoal.NativeMethodInfoPtr_LateUpdate_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060079F9 RID: 31225 RVA: 0x001F125C File Offset: 0x001EF45C
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 516526, RefRangeEnd = 516527, XrefRangeStart = 516526, XrefRangeEnd = 516527, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe BendGoal()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<BendGoal>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BendGoal.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060079FA RID: 31226 RVA: 0x001F12A8 File Offset: 0x001EF4A8
		// Note: this type is marked as 'beforefieldinit'.
		static BendGoal()
		{
			Il2CppClassPointerStore<BendGoal>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "BendGoal");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<BendGoal>.NativeClassPtr);
			BendGoal.NativeFieldInfoPtr_limbIK = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BendGoal>.NativeClassPtr, "limbIK");
			BendGoal.NativeFieldInfoPtr_weight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BendGoal>.NativeClassPtr, "weight");
			BendGoal.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BendGoal>.NativeClassPtr, 100672469);
			BendGoal.NativeMethodInfoPtr_LateUpdate_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BendGoal>.NativeClassPtr, 100672470);
			BendGoal.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BendGoal>.NativeClassPtr, 100672471);
		}

		// Token: 0x060079FB RID: 31227 RVA: 0x0000351C File Offset: 0x0000171C
		public BendGoal(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170029A8 RID: 10664
		// (get) Token: 0x060079FC RID: 31228 RVA: 0x001F133C File Offset: 0x001EF53C
		// (set) Token: 0x060079FD RID: 31229 RVA: 0x001F1370 File Offset: 0x001EF570
		public unsafe LimbIK limbIK
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BendGoal.NativeFieldInfoPtr_limbIK);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new LimbIK(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(BendGoal.NativeFieldInfoPtr_limbIK), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170029A9 RID: 10665
		// (get) Token: 0x060079FE RID: 31230 RVA: 0x001F1398 File Offset: 0x001EF598
		// (set) Token: 0x060079FF RID: 31231 RVA: 0x001F13C0 File Offset: 0x001EF5C0
		public unsafe float weight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BendGoal.NativeFieldInfoPtr_weight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BendGoal.NativeFieldInfoPtr_weight)) = value;
			}
		}

		// Token: 0x0400518D RID: 20877
		private static readonly IntPtr NativeFieldInfoPtr_limbIK;

		// Token: 0x0400518E RID: 20878
		private static readonly IntPtr NativeFieldInfoPtr_weight;

		// Token: 0x0400518F RID: 20879
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04005190 RID: 20880
		private static readonly IntPtr NativeMethodInfoPtr_LateUpdate_Private_Void_0;

		// Token: 0x04005191 RID: 20881
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
