Skip to content

measureEscape

measureEscape(bvh, __namedParameters): number | null

Defined in: packages/engine/src/maths/escape.ts:65

Metres from the point to the nearest baked surface, negative where the point stands behind that surface, or null where the reach pruned every node. Reads the normal with three’s Triangle rather than three-mesh-bvh’s own hit-point info, which allocates a barycentric vector per call.

ponytail: one face decides the side, so a point nearest the edge of a crevice reads the side it is on from that face alone.

Parameter Type
bvh MeshBVH
__namedParameters EscapeQuery

number | null