AutoMovie API
    Preparing search index...

    Signed nearest-surface reading for a query in a convex hull's own frame.

    distance is metres, negative inside and zero on the surface; point and unit normal are shape-local. physicalHullNearest allocates the point but may borrow a normal from its cached hull faces; callers must treat the returned normal as read-only. The producer requires a volumetric hull. Interior queries use the nearest face; outside edge queries use the direction toward the query, with a face-normal fallback near zero distance.

    type IResult = {
        distance: number;
        normal: IAutoMovieVector3;
        point: IAutoMovieVector3;
    }
    Index
    distance: number

    Signed surface separation in metres; negative inside the convex hull.

    Outward unit direction in the hull frame; may alias a cached hull-face normal, so do not mutate it.

    New nearest surface point in the input hull's local frame, metres.