Table of Contents

Class DynamicBoneCollider

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
[AddComponentMenu("Dynamic Bone/Dynamic Bone Collider")]
public class DynamicBoneCollider : DynamicBoneColliderBase
Inheritance
DynamicBoneCollider
Inherited Members
Extension Methods

Constructors

DynamicBoneCollider()

public DynamicBoneCollider()

Fields

m_Height

[Tooltip("The height of the capsule.")]
public float m_Height

Field Value

float

m_Radius

[Tooltip("The radius of the sphere or capsule.")]
public float m_Radius

Field Value

float

Methods

Collide(ref Vector3, float)

public override bool Collide(ref Vector3 particlePosition, float particleRadius)

Parameters

particlePosition Vector3
particleRadius float

Returns

bool

InsideCapsule(ref Vector3, float, Vector3, Vector3, float)

public static bool InsideCapsule(ref Vector3 particlePosition, float particleRadius, Vector3 capsuleP0, Vector3 capsuleP1, float capsuleRadius)

Parameters

particlePosition Vector3
particleRadius float
capsuleP0 Vector3
capsuleP1 Vector3
capsuleRadius float

Returns

bool

InsideSphere(ref Vector3, float, Vector3, float)

public static bool InsideSphere(ref Vector3 particlePosition, float particleRadius, Vector3 sphereCenter, float sphereRadius)

Parameters

particlePosition Vector3
particleRadius float
sphereCenter Vector3
sphereRadius float

Returns

bool

OnDrawGizmosSelected()

public void OnDrawGizmosSelected()

OnValidate()

public void OnValidate()

OutsideCapsule(ref Vector3, float, Vector3, Vector3, float)

public static bool OutsideCapsule(ref Vector3 particlePosition, float particleRadius, Vector3 capsuleP0, Vector3 capsuleP1, float capsuleRadius)

Parameters

particlePosition Vector3
particleRadius float
capsuleP0 Vector3
capsuleP1 Vector3
capsuleRadius float

Returns

bool

OutsideSphere(ref Vector3, float, Vector3, float)

public static bool OutsideSphere(ref Vector3 particlePosition, float particleRadius, Vector3 sphereCenter, float sphereRadius)

Parameters

particlePosition Vector3
particleRadius float
sphereCenter Vector3
sphereRadius float

Returns

bool