navcat docs
    Preparing search index...

    Type Alias RaycastResult

    type RaycastResult = {
        hitEdgeIndex: number;
        hitNormal: Vec3;
        path: NodeRef[];
        pathCost: number;
        t: number;
    }
    Index

    Properties

    hitEdgeIndex: number

    Index of the edge hit.

    hitNormal: Vec3

    Normal vector of the hit wall.

    path: NodeRef[]

    Visited polygon references.

    pathCost: number

    Accumulated path cost from start to hit position. Only calculated when calculateCosts is true.

    t: number

    The hit parameter along the segment. A value of Number.MAX_VALUE indicates no wall hit.