Files
NobetaSource/Cpp2IL/Assembly-CSharp/DynamicBoneCollider.cs
2023-09-06 22:19:13 +02:00

141 lines
4.5 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x020003A7 RID: 935
[Token(Token = "0x20003A7")]
[AddComponentMenu("Dynamic Bone/Dynamic Bone Collider")]
public class DynamicBoneCollider : DynamicBoneColliderBase
{
// Token: 0x060023B4 RID: 9140 RVA: 0x000557D0 File Offset: 0x000539D0
[Token(Token = "0x60023B4")]
[Address(RVA = "0x1595510", Offset = "0x1594510", VA = "0x181595510")]
private void OnValidate()
{
float radius = this.m_Radius;
int num = 0;
float num2 = Mathf.Max(radius, (float)num);
this.m_Radius = num2;
float height = this.m_Height;
int num3 = 0;
float num4 = Mathf.Max(height, (float)num3);
this.m_Height = num4;
}
// Token: 0x060023B5 RID: 9141 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60023B5")]
[Address(RVA = "0x1594980", Offset = "0x1593980", VA = "0x181594980", Slot = "4")]
public override void Collide(ref Vector3 particlePosition, float particleRadius)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060023B6 RID: 9142 RVA: 0x00055814 File Offset: 0x00053A14
[Token(Token = "0x60023B6")]
[Address(RVA = "0x15958F0", Offset = "0x15948F0", VA = "0x1815958F0")]
private static void OutsideSphere(ref Vector3 particlePosition, float particleRadius, Vector3 sphereCenter, float sphereRadius)
{
float z = sphereCenter.z;
float sqrMagnitude = particlePosition.sqrMagnitude;
int num = 0;
if (sqrMagnitude > (float)num && particleRadius > sqrMagnitude)
{
if (particleRadius <= sqrMagnitude)
{
}
float z2 = sphereCenter.z;
particlePosition.z = z2;
}
}
// Token: 0x060023B7 RID: 9143 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60023B7")]
[Address(RVA = "0x15951B0", Offset = "0x15941B0", VA = "0x1815951B0")]
private static void InsideSphere(ref Vector3 particlePosition, float particleRadius, Vector3 sphereCenter, float sphereRadius)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060023B8 RID: 9144 RVA: 0x0005584C File Offset: 0x00053A4C
[Token(Token = "0x60023B8")]
[Address(RVA = "0x1595550", Offset = "0x1594550", VA = "0x181595550")]
private static void OutsideCapsule(ref Vector3 particlePosition, float particleRadius, Vector3 capsuleP0, Vector3 capsuleP1, float capsuleRadius)
{
float z = capsuleP0.z;
int num = 0;
if (num < (int)particleRadius)
{
float sqrMagnitude = particlePosition.sqrMagnitude;
if (particleRadius < sqrMagnitude)
{
if (sqrMagnitude <= (float)num)
{
return;
}
float sqrMagnitude2 = particlePosition.sqrMagnitude;
if (sqrMagnitude2 <= (float)num || particleRadius <= sqrMagnitude2)
{
return;
}
if (particleRadius <= sqrMagnitude2)
{
}
}
float sqrMagnitude3 = particlePosition.sqrMagnitude;
if (sqrMagnitude3 <= (float)num || particleRadius <= sqrMagnitude3)
{
return;
}
if (particleRadius <= sqrMagnitude3)
{
}
}
float sqrMagnitude4 = particlePosition.sqrMagnitude;
if (sqrMagnitude4 > (float)num && particleRadius > sqrMagnitude4)
{
if (particleRadius <= sqrMagnitude4)
{
}
float z2 = capsuleP0.z;
particlePosition.z = z2;
}
}
// Token: 0x060023B9 RID: 9145 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60023B9")]
[Address(RVA = "0x1594E30", Offset = "0x1593E30", VA = "0x181594E30")]
private static void InsideCapsule(ref Vector3 particlePosition, float particleRadius, Vector3 capsuleP0, Vector3 capsuleP1, float capsuleRadius)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060023BA RID: 9146 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60023BA")]
[Address(RVA = "0x15952E0", Offset = "0x15942E0", VA = "0x1815952E0")]
private void OnDrawGizmosSelected()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060023BB RID: 9147 RVA: 0x000558C8 File Offset: 0x00053AC8
[Token(Token = "0x60023BB")]
[Address(RVA = "0x1595A20", Offset = "0x1594A20", VA = "0x181595A20")]
public DynamicBoneCollider()
{
this.m_Direction = (DynamicBoneColliderBase.Direction)((ulong)1L);
float z = Vector3.zero.z;
this.m_Center.z = z;
base..ctor();
}
// Token: 0x04002D47 RID: 11591
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4002D47")]
public float m_Radius = 0.5f;
// Token: 0x04002D48 RID: 11592
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x4002D48")]
public float m_Height;
}