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

141 lines
4.5 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x0200034F RID: 847
[Token(Token = "0x200034F")]
[AddComponentMenu("Dynamic Bone/Dynamic Bone Collider")]
public class DynamicBoneCollider : DynamicBoneColliderBase
{
// Token: 0x060020EB RID: 8427 RVA: 0x0004E534 File Offset: 0x0004C734
[Token(Token = "0x60020EB")]
[Address(RVA = "0xA58D80", Offset = "0xA57B80", VA = "0x180A58D80")]
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: 0x060020EC RID: 8428 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60020EC")]
[Address(RVA = "0xA581F0", Offset = "0xA56FF0", VA = "0x180A581F0", 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: 0x060020ED RID: 8429 RVA: 0x0004E578 File Offset: 0x0004C778
[Token(Token = "0x60020ED")]
[Address(RVA = "0xA59160", Offset = "0xA57F60", VA = "0x180A59160")]
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: 0x060020EE RID: 8430 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60020EE")]
[Address(RVA = "0xA58A20", Offset = "0xA57820", VA = "0x180A58A20")]
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: 0x060020EF RID: 8431 RVA: 0x0004E5B0 File Offset: 0x0004C7B0
[Token(Token = "0x60020EF")]
[Address(RVA = "0xA58DC0", Offset = "0xA57BC0", VA = "0x180A58DC0")]
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: 0x060020F0 RID: 8432 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60020F0")]
[Address(RVA = "0xA586A0", Offset = "0xA574A0", VA = "0x180A586A0")]
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: 0x060020F1 RID: 8433 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60020F1")]
[Address(RVA = "0xA58B50", Offset = "0xA57950", VA = "0x180A58B50")]
private void OnDrawGizmosSelected()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060020F2 RID: 8434 RVA: 0x0004E62C File Offset: 0x0004C82C
[Token(Token = "0x60020F2")]
[Address(RVA = "0xA59290", Offset = "0xA58090", VA = "0x180A59290")]
public DynamicBoneCollider()
{
this.m_Direction = (DynamicBoneColliderBase.Direction)((ulong)1L);
float z = Vector3.zero.z;
this.m_Center.z = z;
base..ctor();
}
// Token: 0x04002A5D RID: 10845
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4002A5D")]
public float m_Radius = 0.5f;
// Token: 0x04002A5E RID: 10846
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x4002A5E")]
public float m_Height;
}