AutoMovie API
    Preparing search index...

    Function physicalHullNearest

    The nearest surface point of a convex hull to a point in the hull's own frame, with the outward normal there and the signed distance, negative inside.

    Inside, the nearest surface point is the projection onto the face whose plane is closest, and the normal is that face's. Outside, it is the projection onto a facing face when that projection falls within the face's loop, and otherwise the nearest point on the edges of the facing faces; the normal then points from the surface point to the query point.

    The planes and the edges are read from flat arrays built once per hull: a projection falls within a face's loop when it lies on the inner side of each edge, which is the sign of one product with the edge's inward direction in the face (the face normal crossed with the edge), as the query point and its projection differ along the normal only.

    The hull's shape-local points, metres, spanning a volume.

    The query point in the same frame.

    False for the distance alone; omitted for the original full contact.

    Signed metres in scalar mode; otherwise that distance with the original surface point and outward unit normal in the points' frame.

    When the points span no volume.