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

141 lines
4.5 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x02000358 RID: 856
[Token(Token = "0x2000358")]
[AddComponentMenu("Dynamic Bone/Dynamic Bone Collider")]
public class DynamicBoneCollider : DynamicBoneColliderBase
{
// Token: 0x0600211D RID: 8477 RVA: 0x0004EF9C File Offset: 0x0004D19C
[Token(Token = "0x600211D")]
[Address(RVA = "0xA88270", Offset = "0xA86A70", VA = "0x180A88270")]
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: 0x0600211E RID: 8478 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600211E")]
[Address(RVA = "0xA876E0", Offset = "0xA85EE0", VA = "0x180A876E0", 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: 0x0600211F RID: 8479 RVA: 0x0004EFE0 File Offset: 0x0004D1E0
[Token(Token = "0x600211F")]
[Address(RVA = "0xA88650", Offset = "0xA86E50", VA = "0x180A88650")]
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: 0x06002120 RID: 8480 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002120")]
[Address(RVA = "0xA87F10", Offset = "0xA86710", VA = "0x180A87F10")]
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: 0x06002121 RID: 8481 RVA: 0x0004F018 File Offset: 0x0004D218
[Token(Token = "0x6002121")]
[Address(RVA = "0xA882B0", Offset = "0xA86AB0", VA = "0x180A882B0")]
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: 0x06002122 RID: 8482 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002122")]
[Address(RVA = "0xA87B90", Offset = "0xA86390", VA = "0x180A87B90")]
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: 0x06002123 RID: 8483 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002123")]
[Address(RVA = "0xA88040", Offset = "0xA86840", VA = "0x180A88040")]
private void OnDrawGizmosSelected()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002124 RID: 8484 RVA: 0x0004F094 File Offset: 0x0004D294
[Token(Token = "0x6002124")]
[Address(RVA = "0xA88780", Offset = "0xA86F80", VA = "0x180A88780")]
public DynamicBoneCollider()
{
this.m_Direction = (DynamicBoneColliderBase.Direction)((ulong)1L);
float z = Vector3.zero.z;
this.m_Center.z = z;
base..ctor();
}
// Token: 0x04002A9F RID: 10911
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4002A9F")]
public float m_Radius = 0.5f;
// Token: 0x04002AA0 RID: 10912
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x4002AA0")]
public float m_Height;
}