Search Results for

    Show / Hide Table of Contents

    Delegate MockColliderCast.CastSelfCallback

    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 void CastSelfCallback(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

    Width of skin of object to use when casting a hit. Essentially buffer space around the edge of the object.

    In This Article
    Back to top OpenKCC Documentation