Files
Apr2020-Cpp2Il-Dump/Assembly-CSharp-firstpass/RootMotion/FinalIK/InteractionTarget.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

216 lines
7.1 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace RootMotion.FinalIK
{
// Token: 0x0200009D RID: 157
[Token(Token = "0x200006D")]
[HelpURL("https://www.youtube.com/watch?v=r5jiZnsDH3M")]
[AddComponentMenu("Scripts/RootMotion.FinalIK/Interaction System/Interaction Target")]
public class InteractionTarget : MonoBehaviour
{
// Token: 0x06000553 RID: 1363 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000438")]
[Address(RVA = "0x2EE9FB0", Offset = "0x2EE8DB0", VA = "0x182EE9FB0")]
[ContextMenu("User Manual")]
private void OpenUserManual()
{
}
// Token: 0x06000554 RID: 1364 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000439")]
[Address(RVA = "0x2EE9E70", Offset = "0x2EE8C70", VA = "0x182EE9E70")]
[ContextMenu("Scrpt Reference")]
private void OpenScriptReference()
{
}
// Token: 0x06000555 RID: 1365 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600043A")]
[Address(RVA = "0x2EE9EB0", Offset = "0x2EE8CB0", VA = "0x182EE9EB0")]
[ContextMenu("TUTORIAL VIDEO (PART 1: BASICS)")]
private void OpenTutorial1()
{
}
// Token: 0x06000556 RID: 1366 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600043B")]
[Address(RVA = "0x2EE9EF0", Offset = "0x2EE8CF0", VA = "0x182EE9EF0")]
[ContextMenu("TUTORIAL VIDEO (PART 2: PICKING UP...)")]
private void OpenTutorial2()
{
}
// Token: 0x06000557 RID: 1367 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600043C")]
[Address(RVA = "0x2EE9F30", Offset = "0x2EE8D30", VA = "0x182EE9F30")]
[ContextMenu("TUTORIAL VIDEO (PART 3: ANIMATION)")]
private void OpenTutorial3()
{
}
// Token: 0x06000558 RID: 1368 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600043D")]
[Address(RVA = "0x2EE9F70", Offset = "0x2EE8D70", VA = "0x182EE9F70")]
[ContextMenu("TUTORIAL VIDEO (PART 4: TRIGGERS)")]
private void OpenTutorial4()
{
}
// Token: 0x06000559 RID: 1369 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600043E")]
[Address(RVA = "0x2EEA7A0", Offset = "0x2EE95A0", VA = "0x182EEA7A0")]
[ContextMenu("Support Group")]
private void SupportGroup()
{
}
// Token: 0x0600055A RID: 1370 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600043F")]
[Address(RVA = "0x2EE9DA0", Offset = "0x2EE8BA0", VA = "0x182EE9DA0")]
[ContextMenu("Asset Store Thread")]
private void ASThread()
{
}
// Token: 0x0600055B RID: 1371 RVA: 0x00004308 File Offset: 0x00002508
[Token(Token = "0x6000440")]
[Address(RVA = "0x2EE9DE0", Offset = "0x2EE8BE0", VA = "0x182EE9DE0")]
public float GetValue(InteractionObject.WeightCurve.Type curveType)
{
return 0f;
}
// Token: 0x0600055C RID: 1372 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000441")]
[Address(RVA = "0x2EE9FF0", Offset = "0x2EE8DF0", VA = "0x182EE9FF0")]
public void ResetRotation()
{
}
// Token: 0x0600055D RID: 1373 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000442")]
[Address(RVA = "0x2EEA080", Offset = "0x2EE8E80", VA = "0x182EEA080")]
public void RotateTo(Transform bone)
{
}
// Token: 0x0600055E RID: 1374 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000443")]
[Address(RVA = "0x2EEA7E0", Offset = "0x2EE95E0", VA = "0x182EEA7E0")]
public InteractionTarget()
{
}
// Token: 0x040004E7 RID: 1255
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000345")]
[Tooltip("The type of the FBBIK effector.")]
public FullBodyBipedEffector effectorType;
// Token: 0x040004E8 RID: 1256
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000346")]
[Tooltip("InteractionObject weight curve multipliers for this effector target.")]
public InteractionTarget.Multiplier[] multipliers;
// Token: 0x040004E9 RID: 1257
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000347")]
[Tooltip("The interaction speed multiplier for this effector. This can be used to make interactions faster/slower for specific effectors.")]
public float interactionSpeedMlp;
// Token: 0x040004EA RID: 1258
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000348")]
[Tooltip("The pivot to twist/swing this interaction target about. For symmetric objects that can be interacted with from a certain angular range.")]
public Transform pivot;
// Token: 0x040004EB RID: 1259
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000349")]
[Tooltip("2 or 3 degrees of freedom to match this InteractionTarget's rotation to the effector bone rotation.")]
public InteractionTarget.RotationMode rotationMode;
// Token: 0x040004EC RID: 1260
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x400034A")]
[Tooltip("The axis of twisting the interaction target (blue line).")]
public Vector3 twistAxis;
// Token: 0x040004ED RID: 1261
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400034B")]
[Tooltip("The weight of twisting the interaction target towards the effector bone in the start of the interaction.")]
public float twistWeight;
// Token: 0x040004EE RID: 1262
[FieldOffset(Offset = "0x4C")]
[Token(Token = "0x400034C")]
[Tooltip("The weight of swinging the interaction target towards the effector bone in the start of the interaction. Swing is defined as a 3-DOF rotation around any axis, while twist is only around the twist axis.")]
public float swingWeight;
// Token: 0x040004EF RID: 1263
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400034D")]
[Tooltip("The weight of rotating this InteractionTarget to the effector bone in the start of the interaction (and during if 'Rotate Once' is disabled")]
[Range(0f, 1f)]
public float threeDOFWeight;
// Token: 0x040004F0 RID: 1264
[FieldOffset(Offset = "0x54")]
[Token(Token = "0x400034E")]
[Tooltip("If true, will twist/swing around the pivot only once at the start of the interaction. If false, will continue rotating throuout the whole interaction.")]
public bool rotateOnce;
// Token: 0x040004F1 RID: 1265
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400034F")]
private Quaternion defaultLocalRotation;
// Token: 0x040004F2 RID: 1266
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4000350")]
private Transform lastPivot;
// Token: 0x0200009E RID: 158
[Token(Token = "0x20000FC")]
[Serializable]
public enum RotationMode
{
// Token: 0x040004F4 RID: 1268
[Token(Token = "0x4000760")]
TwoDOF,
// Token: 0x040004F5 RID: 1269
[Token(Token = "0x4000761")]
ThreeDOF
}
// Token: 0x0200009F RID: 159
[Token(Token = "0x20000FD")]
[Serializable]
public class Multiplier
{
// Token: 0x0600055F RID: 1375 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000758")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public Multiplier()
{
}
// Token: 0x040004F6 RID: 1270
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000762")]
[Tooltip("The curve type (InteractionObject.WeightCurve.Type).")]
public InteractionObject.WeightCurve.Type curve;
// Token: 0x040004F7 RID: 1271
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x4000763")]
[Tooltip("Multiplier of the curve's value.")]
public float multiplier;
}
}
}