183 lines
6.2 KiB
C#
183 lines
6.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RootMotion.FinalIK
|
|
{
|
|
// Token: 0x02000408 RID: 1032
|
|
[Token(Token = "0x2000408")]
|
|
[AddComponentMenu("Scripts/RootMotion.FinalIK/Grounder/Grounder IK")]
|
|
[HelpURL("http://www.root-motion.com/finalikdox/html/page11.html")]
|
|
public class GrounderIK : Grounder
|
|
{
|
|
// Token: 0x060024C2 RID: 9410 RVA: 0x00053AD0 File Offset: 0x00051CD0
|
|
[Token(Token = "0x60024C2")]
|
|
[Address(RVA = "0x11D9F80", Offset = "0x11D8780", VA = "0x1811D9F80", Slot = "5")]
|
|
[ContextMenu("User Manual")]
|
|
protected override void OpenUserManual()
|
|
{
|
|
Application.OpenURL("http://www.root-motion.com/finalikdox/html/page11.html");
|
|
}
|
|
|
|
// Token: 0x060024C3 RID: 9411 RVA: 0x00053AE8 File Offset: 0x00051CE8
|
|
[Token(Token = "0x60024C3")]
|
|
[Address(RVA = "0x11D9F40", Offset = "0x11D8740", VA = "0x1811D9F40", Slot = "6")]
|
|
[ContextMenu("Scrpt Reference")]
|
|
protected override void OpenScriptReference()
|
|
{
|
|
Application.OpenURL("http://www.root-motion.com/finalikdox/html/class_root_motion_1_1_final_i_k_1_1_grounder_i_k.html");
|
|
}
|
|
|
|
// Token: 0x060024C4 RID: 9412 RVA: 0x00053B00 File Offset: 0x00051D00
|
|
[Token(Token = "0x60024C4")]
|
|
[Address(RVA = "0x11D9FC0", Offset = "0x11D87C0", VA = "0x1811D9FC0", Slot = "4")]
|
|
public override void ResetPosition()
|
|
{
|
|
this.solver.Reset();
|
|
}
|
|
|
|
// Token: 0x060024C5 RID: 9413 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024C5")]
|
|
[Address(RVA = "0x11D9420", Offset = "0x11D7C20", VA = "0x1811D9420")]
|
|
private bool IsReadyToInitiate()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024C6 RID: 9414 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024C6")]
|
|
[Address(RVA = "0x11D9860", Offset = "0x11D8060", VA = "0x1811D9860")]
|
|
private void OnDisable()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024C7 RID: 9415 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024C7")]
|
|
[Address(RVA = "0x11DA3E0", Offset = "0x11D8BE0", VA = "0x1811DA3E0")]
|
|
private void Update()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024C8 RID: 9416 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024C8")]
|
|
[Address(RVA = "0x11D8EC0", Offset = "0x11D76C0", VA = "0x1811D8EC0")]
|
|
private void Initiate()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024C9 RID: 9417 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024C9")]
|
|
[Address(RVA = "0x11D9BC0", Offset = "0x11D83C0", VA = "0x1811D9BC0")]
|
|
private void OnSolverUpdate()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024CA RID: 9418 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024CA")]
|
|
[Address(RVA = "0x11D9FE0", Offset = "0x11D87E0", VA = "0x1811D9FE0")]
|
|
private void SetLegIK(int index)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024CB RID: 9419 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024CB")]
|
|
[Address(RVA = "0x11D99A0", Offset = "0x11D81A0", VA = "0x1811D99A0")]
|
|
private void OnPostSolverUpdate()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024CC RID: 9420 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024CC")]
|
|
[Address(RVA = "0x11D9630", Offset = "0x11D7E30", VA = "0x1811D9630")]
|
|
private void OnDestroy()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024CD RID: 9421 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024CD")]
|
|
[Address(RVA = "0x11DA780", Offset = "0x11D8F80", VA = "0x1811DA780")]
|
|
public GrounderIK()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04002E7B RID: 11899
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4002E7B")]
|
|
public IK[] legs;
|
|
|
|
// Token: 0x04002E7C RID: 11900
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4002E7C")]
|
|
[Tooltip("The pelvis transform. Common ancestor of all the legs.")]
|
|
public Transform pelvis;
|
|
|
|
// Token: 0x04002E7D RID: 11901
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4002E7D")]
|
|
[Tooltip("The root Transform of the character, with the rigidbody and the collider.")]
|
|
public Transform characterRoot;
|
|
|
|
// Token: 0x04002E7E RID: 11902
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4002E7E")]
|
|
[Tooltip("The weight of rotating the character root to the ground normal (range: 0 - 1).")]
|
|
[Range(0f, 1f)]
|
|
public float rootRotationWeight;
|
|
|
|
// Token: 0x04002E7F RID: 11903
|
|
[FieldOffset(Offset = "0x5C")]
|
|
[Token(Token = "0x4002E7F")]
|
|
[Tooltip("The speed of rotating the character root to the ground normal (range: 0 - inf).")]
|
|
public float rootRotationSpeed;
|
|
|
|
// Token: 0x04002E80 RID: 11904
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4002E80")]
|
|
[Tooltip("The maximum angle of root rotation (range: 0 - 90).")]
|
|
public float maxRootRotationAngle;
|
|
|
|
// Token: 0x04002E81 RID: 11905
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4002E81")]
|
|
private Transform[] feet;
|
|
|
|
// Token: 0x04002E82 RID: 11906
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4002E82")]
|
|
private Quaternion[] footRotations;
|
|
|
|
// Token: 0x04002E83 RID: 11907
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4002E83")]
|
|
private Vector3 animatedPelvisLocalPosition;
|
|
|
|
// Token: 0x04002E84 RID: 11908
|
|
[FieldOffset(Offset = "0x84")]
|
|
[Token(Token = "0x4002E84")]
|
|
private Vector3 solvedPelvisLocalPosition;
|
|
|
|
// Token: 0x04002E85 RID: 11909
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x4002E85")]
|
|
private int solvedFeet;
|
|
|
|
// Token: 0x04002E86 RID: 11910
|
|
[FieldOffset(Offset = "0x94")]
|
|
[Token(Token = "0x4002E86")]
|
|
private bool solved;
|
|
|
|
// Token: 0x04002E87 RID: 11911
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4002E87")]
|
|
private float lastWeight;
|
|
}
|
|
}
|