using System;
using System.Collections;
using Cpp2IlInjected;
using RootMotion.FinalIK;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x02000404 RID: 1028
	[Token(Token = "0x2000404")]
	public class MechSpiderLeg : MonoBehaviour
	{
		// Token: 0x1700021C RID: 540
		// (get) Token: 0x060025D4 RID: 9684 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x1700021C")]
		public bool isStepping
		{
			[Token(Token = "0x60025D4")]
			[Address(RVA = "0x425C30", Offset = "0x424C30", VA = "0x180425C30")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x1700021D RID: 541
		// (get) Token: 0x060025D5 RID: 9685 RVA: 0x000020D3 File Offset: 0x000002D3
		// (set) Token: 0x060025D6 RID: 9686 RVA: 0x00057A8C File Offset: 0x00055C8C
		[Token(Token = "0x1700021D")]
		public Vector3 position
		{
			[Token(Token = "0x60025D5")]
			[Address(RVA = "0x425C40", Offset = "0x424C40", VA = "0x180425C40")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
			[Token(Token = "0x60025D6")]
			[Address(RVA = "0x425CA0", Offset = "0x424CA0", VA = "0x180425CA0")]
			set
			{
				IKSolver iksolver = this.ik.GetIKSolver();
				float z = value.z;
				iksolver.IKPosition.z = z;
			}
		}

		// Token: 0x060025D7 RID: 9687 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60025D7")]
		[Address(RVA = "0x425520", Offset = "0x424520", VA = "0x180425520")]
		private void Start()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060025D8 RID: 9688 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60025D8")]
		[Address(RVA = "0x425030", Offset = "0x424030", VA = "0x180425030")]
		private Vector3 GetStepTarget(out bool stepFound, float focus, float distance)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060025D9 RID: 9689 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60025D9")]
		[Address(RVA = "0x4258B0", Offset = "0x4248B0", VA = "0x1804258B0")]
		private void Update()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060025DA RID: 9690 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60025DA")]
		[Address(RVA = "0x425800", Offset = "0x424800", VA = "0x180425800")]
		private IEnumerator Step(Vector3 stepStartPosition, Vector3 targetPosition)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060025DB RID: 9691 RVA: 0x00057AC0 File Offset: 0x00055CC0
		[Token(Token = "0x60025DB")]
		[Address(RVA = "0x425BF0", Offset = "0x424BF0", VA = "0x180425BF0")]
		public MechSpiderLeg()
		{
		}

		// Token: 0x04002F38 RID: 12088
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4002F38")]
		public MechSpider mechSpider;

		// Token: 0x04002F39 RID: 12089
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4002F39")]
		public MechSpiderLeg unSync;

		// Token: 0x04002F3A RID: 12090
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4002F3A")]
		public Vector3 offset;

		// Token: 0x04002F3B RID: 12091
		[FieldOffset(Offset = "0x34")]
		[Token(Token = "0x4002F3B")]
		public float minDelay = 0.2f;

		// Token: 0x04002F3C RID: 12092
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x4002F3C")]
		public float maxOffset = 1f;

		// Token: 0x04002F3D RID: 12093
		[FieldOffset(Offset = "0x3C")]
		[Token(Token = "0x4002F3D")]
		public float stepSpeed = 5f;

		// Token: 0x04002F3E RID: 12094
		[FieldOffset(Offset = "0x40")]
		[Token(Token = "0x4002F3E")]
		public float footHeight = 0.15f;

		// Token: 0x04002F3F RID: 12095
		[FieldOffset(Offset = "0x44")]
		[Token(Token = "0x4002F3F")]
		public float velocityPrediction = 0.2f;

		// Token: 0x04002F40 RID: 12096
		[FieldOffset(Offset = "0x48")]
		[Token(Token = "0x4002F40")]
		public float raycastFocus = 0.1f;

		// Token: 0x04002F41 RID: 12097
		[FieldOffset(Offset = "0x50")]
		[Token(Token = "0x4002F41")]
		public AnimationCurve yOffset;

		// Token: 0x04002F42 RID: 12098
		[FieldOffset(Offset = "0x58")]
		[Token(Token = "0x4002F42")]
		public ParticleSystem sand;

		// Token: 0x04002F43 RID: 12099
		[FieldOffset(Offset = "0x60")]
		[Token(Token = "0x4002F43")]
		private IK ik;

		// Token: 0x04002F44 RID: 12100
		[FieldOffset(Offset = "0x68")]
		[Token(Token = "0x4002F44")]
		private float stepProgress = 1f;

		// Token: 0x04002F45 RID: 12101
		[FieldOffset(Offset = "0x6C")]
		[Token(Token = "0x4002F45")]
		private float lastStepTime;

		// Token: 0x04002F46 RID: 12102
		[FieldOffset(Offset = "0x70")]
		[Token(Token = "0x4002F46")]
		private Vector3 defaultPosition;

		// Token: 0x04002F47 RID: 12103
		[FieldOffset(Offset = "0x7C")]
		[Token(Token = "0x4002F47")]
		private RaycastHit hit;
	}
}
