244 lines
7.4 KiB
C#
244 lines
7.4 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RootMotion.FinalIK
|
|
{
|
|
// Token: 0x0200043B RID: 1083
|
|
[Token(Token = "0x200043B")]
|
|
[Serializable]
|
|
public class IKSolverLimb : IKSolverTrigonometric
|
|
{
|
|
// Token: 0x060026CC RID: 9932 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60026CC")]
|
|
[Address(RVA = "0x1670200", Offset = "0x166EA00", VA = "0x181670200")]
|
|
public void MaintainRotation()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060026CD RID: 9933 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60026CD")]
|
|
[Address(RVA = "0x16701B0", Offset = "0x166E9B0", VA = "0x1816701B0")]
|
|
public void MaintainBend()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060026CE RID: 9934 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60026CE")]
|
|
[Address(RVA = "0x1670250", Offset = "0x166EA50", VA = "0x181670250", Slot = "12")]
|
|
protected override void OnInitiateVirtual()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060026CF RID: 9935 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60026CF")]
|
|
[Address(RVA = "0x1670750", Offset = "0x166EF50", VA = "0x181670750", Slot = "13")]
|
|
protected override void OnUpdateVirtual()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060026D0 RID: 9936 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60026D0")]
|
|
[Address(RVA = "0x1670660", Offset = "0x166EE60", VA = "0x181670660", Slot = "14")]
|
|
protected override void OnPostSolveVirtual()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060026D1 RID: 9937 RVA: 0x00056980 File Offset: 0x00054B80
|
|
[Token(Token = "0x60026D1")]
|
|
[Address(RVA = "0x1670B60", Offset = "0x166F360", VA = "0x181670B60")]
|
|
public IKSolverLimb()
|
|
{
|
|
IKSolverLimb.AxisDirection[] array = new IKSolverLimb.AxisDirection[4];
|
|
this.axisDirectionsLeft = array;
|
|
IKSolverLimb.AxisDirection[] array2 = new IKSolverLimb.AxisDirection[4];
|
|
this.axisDirectionsRight = array2;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x060026D2 RID: 9938 RVA: 0x000569BC File Offset: 0x00054BBC
|
|
[Token(Token = "0x60026D2")]
|
|
[Address(RVA = "0x1670AC0", Offset = "0x166F2C0", VA = "0x181670AC0")]
|
|
public IKSolverLimb(AvatarIKGoal goal)
|
|
{
|
|
IKSolverLimb.AxisDirection[] array = new IKSolverLimb.AxisDirection[4];
|
|
this.axisDirectionsLeft = array;
|
|
IKSolverLimb.AxisDirection[] array2 = new IKSolverLimb.AxisDirection[4];
|
|
this.axisDirectionsRight = array2;
|
|
base..ctor();
|
|
this.goal = goal;
|
|
}
|
|
|
|
// Token: 0x1700024A RID: 586
|
|
// (get) Token: 0x060026D3 RID: 9939 RVA: 0x00056A00 File Offset: 0x00054C00
|
|
[Token(Token = "0x1700024A")]
|
|
private IKSolverLimb.AxisDirection[] axisDirections
|
|
{
|
|
[Token(Token = "0x60026D3")]
|
|
[Address(RVA = "0x1670BF0", Offset = "0x166F3F0", VA = "0x181670BF0")]
|
|
get
|
|
{
|
|
if (this.goal != AvatarIKGoal.LeftHand)
|
|
{
|
|
return this.axisDirectionsRight;
|
|
}
|
|
return this.axisDirectionsLeft;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060026D4 RID: 9940 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60026D4")]
|
|
[Address(RVA = "0x1670860", Offset = "0x166F060", VA = "0x181670860")]
|
|
private void StoreAxisDirections(ref IKSolverLimb.AxisDirection[] axisDirections)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060026D5 RID: 9941 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60026D5")]
|
|
[Address(RVA = "0x166F4A0", Offset = "0x166DCA0", VA = "0x18166F4A0")]
|
|
private Vector3 GetModifiedBendNormal()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0400302F RID: 12335
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x400302F")]
|
|
public AvatarIKGoal goal;
|
|
|
|
// Token: 0x04003030 RID: 12336
|
|
[FieldOffset(Offset = "0xAC")]
|
|
[Token(Token = "0x4003030")]
|
|
public IKSolverLimb.BendModifier bendModifier;
|
|
|
|
// Token: 0x04003031 RID: 12337
|
|
[FieldOffset(Offset = "0xB0")]
|
|
[Token(Token = "0x4003031")]
|
|
[Range(0f, 1f)]
|
|
public float maintainRotationWeight;
|
|
|
|
// Token: 0x04003032 RID: 12338
|
|
[FieldOffset(Offset = "0xB4")]
|
|
[Token(Token = "0x4003032")]
|
|
[Range(0f, 1f)]
|
|
public float bendModifierWeight = 1f;
|
|
|
|
// Token: 0x04003033 RID: 12339
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x4003033")]
|
|
public Transform bendGoal;
|
|
|
|
// Token: 0x04003034 RID: 12340
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x4003034")]
|
|
private bool maintainBendFor1Frame;
|
|
|
|
// Token: 0x04003035 RID: 12341
|
|
[FieldOffset(Offset = "0xC1")]
|
|
[Token(Token = "0x4003035")]
|
|
private bool maintainRotationFor1Frame;
|
|
|
|
// Token: 0x04003036 RID: 12342
|
|
[FieldOffset(Offset = "0xC4")]
|
|
[Token(Token = "0x4003036")]
|
|
private Quaternion defaultRootRotation;
|
|
|
|
// Token: 0x04003037 RID: 12343
|
|
[FieldOffset(Offset = "0xD4")]
|
|
[Token(Token = "0x4003037")]
|
|
private Quaternion parentDefaultRotation;
|
|
|
|
// Token: 0x04003038 RID: 12344
|
|
[FieldOffset(Offset = "0xE4")]
|
|
[Token(Token = "0x4003038")]
|
|
private Quaternion bone3RotationBeforeSolve;
|
|
|
|
// Token: 0x04003039 RID: 12345
|
|
[FieldOffset(Offset = "0xF4")]
|
|
[Token(Token = "0x4003039")]
|
|
private Quaternion maintainRotation;
|
|
|
|
// Token: 0x0400303A RID: 12346
|
|
[FieldOffset(Offset = "0x104")]
|
|
[Token(Token = "0x400303A")]
|
|
private Quaternion bone3DefaultRotation;
|
|
|
|
// Token: 0x0400303B RID: 12347
|
|
[FieldOffset(Offset = "0x114")]
|
|
[Token(Token = "0x400303B")]
|
|
private Vector3 _bendNormal;
|
|
|
|
// Token: 0x0400303C RID: 12348
|
|
[FieldOffset(Offset = "0x120")]
|
|
[Token(Token = "0x400303C")]
|
|
private Vector3 animationNormal;
|
|
|
|
// Token: 0x0400303D RID: 12349
|
|
[FieldOffset(Offset = "0x130")]
|
|
[Token(Token = "0x400303D")]
|
|
private IKSolverLimb.AxisDirection[] axisDirectionsLeft;
|
|
|
|
// Token: 0x0400303E RID: 12350
|
|
[FieldOffset(Offset = "0x138")]
|
|
[Token(Token = "0x400303E")]
|
|
private IKSolverLimb.AxisDirection[] axisDirectionsRight;
|
|
|
|
// Token: 0x0200043C RID: 1084
|
|
[Token(Token = "0x200043C")]
|
|
[Serializable]
|
|
public enum BendModifier
|
|
{
|
|
// Token: 0x04003040 RID: 12352
|
|
[Token(Token = "0x4003040")]
|
|
Animation,
|
|
// Token: 0x04003041 RID: 12353
|
|
[Token(Token = "0x4003041")]
|
|
Target,
|
|
// Token: 0x04003042 RID: 12354
|
|
[Token(Token = "0x4003042")]
|
|
Parent,
|
|
// Token: 0x04003043 RID: 12355
|
|
[Token(Token = "0x4003043")]
|
|
Arm,
|
|
// Token: 0x04003044 RID: 12356
|
|
[Token(Token = "0x4003044")]
|
|
Goal
|
|
}
|
|
|
|
// Token: 0x0200043D RID: 1085
|
|
[Token(Token = "0x200043D")]
|
|
[Serializable]
|
|
public struct AxisDirection
|
|
{
|
|
// Token: 0x060026D6 RID: 9942 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60026D6")]
|
|
[Address(RVA = "0x157FA10", Offset = "0x157E210", VA = "0x18157FA10")]
|
|
public AxisDirection(Vector3 direction, Vector3 axis)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04003045 RID: 12357
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4003045")]
|
|
public Vector3 direction;
|
|
|
|
// Token: 0x04003046 RID: 12358
|
|
[FieldOffset(Offset = "0xC")]
|
|
[Token(Token = "0x4003046")]
|
|
public Vector3 axis;
|
|
|
|
// Token: 0x04003047 RID: 12359
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4003047")]
|
|
public float dot;
|
|
}
|
|
}
|
|
}
|