Search Results for

    Show / Hide Table of Contents

    Class CapsuleColliderExtensions

    UnityEngine.CapsuleCollider Based Extension Methods

    Inheritance
    System.Object
    CapsuleColliderExtensions
    Namespace: GDX
    Syntax
    [VisualScriptingCompatible((short)2)]
    public static class CapsuleColliderExtensions

    Methods

    | Improve this Doc View Source

    Direction(CapsuleCollider)

    Get a UnityEngine.Vector3 based orientation of the targetCapsuleCollider.

    Declaration
    public static Vector3 Direction(this CapsuleCollider targetCapsuleCollider)
    Parameters
    Type Name Description
    UnityEngine.CapsuleCollider targetCapsuleCollider

    The capsule collider

    Returns
    Type Description
    UnityEngine.Vector3

    The direction of a UnityEngine.CapsuleCollider in its local space.

    Exceptions
    Type Condition
    UnsupportedRuntimeException

    Not supported on DOTS Runtime.

    | Improve this Doc View Source

    OutSphereCenters(CapsuleCollider, out Vector3, out Vector3)

    Return into topPosition and bottomPosition, the respective world-space position of a UnityEngine.CapsuleCollider's spheres centers.

    Declaration
    public static void OutSphereCenters(CapsuleCollider targetCapsuleCollider, out Vector3 topPosition, out Vector3 bottomPosition)
    Parameters
    Type Name Description
    UnityEngine.CapsuleCollider targetCapsuleCollider

    The UnityEngine.CapsuleCollider having its spheres evaluated.

    UnityEngine.Vector3 topPosition

    The determined top spheres center position in world-space.

    UnityEngine.Vector3 bottomPosition

    The determined bottom spheres center position in world-space.

    Exceptions
    Type Condition
    UnsupportedRuntimeException

    Not supported on DOTS Runtime.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.