Search Results for

    Show / Hide Table of Contents

    Delegate MockColliderCast.CastSelfReturns

    Callback function for CastSelf(Vector3, Quaternion, Vector3, Single, out IRaycastHit, Int32, QueryTriggerInteraction, Single)

    Namespace: nickmaltbie.OpenKCC.Utils.ColliderCast
    Assembly: cs.temp.dll.dll
    Syntax
    public delegate bool CastSelfReturns(Vector3 position, Quaternion rotation, Vector3 direction, float distance, out IRaycastHit hit, int layerMask, QueryTriggerInteraction queryTriggerInteraction, float skinWidth);
    Parameters
    Type Name Description
    Vector3 position

    Position of the object when it is being raycast.

    Quaternion rotation

    Rotation of the objecting when it is being raycast.

    Vector3 direction

    Direction of the raycast.

    Single distance

    Maximum distance of raycast.

    IRaycastHit hit

    First object hit and related information, will have a distance of Infinity if none is found.

    Int32 layerMask
    QueryTriggerInteraction queryTriggerInteraction
    Single skinWidth

    Buffer around player when casting object.

    Returns
    Type Description
    Boolean

    True if an object is hit within distance, false otherwise.

    In This Article
    Back to top OpenKCC Documentation