benilla-re systems structs docs

s_facetFacingBound

global · collision

Address
0x80c5c4 · 4 bytes, up to 0x80c5c7
Type
float
Meaning
Holds -1e-5 (0xb727c5ac), the n·dir at or below which a facet faces against the motion
Confidence
verified, proof one
Finding
collision/contact#nearest-facet-per-face

Finding: Nearest facet per face in collision: contact

0x632700(list, dir, prism, n, planes, k, best, hit) finds, for volume face k, the facet the face reaches first. A record is skipped unless n·dir ≤ −1·10⁻⁵ (0xb727c5ac, 0x80c5c4) or NaN: only a facet facing against the motion counts. Its three vertices, tagged −1, are clipped by the n prism planes; what is left goes to 0x632830 with the distance FLT_MAX (0x7f7fffff). A distance at or below *best, never NaN, is stored in *best with the record's index in *hit. Returns 1 when any record was stored. Two more dwords, the owner's GUID, are passed and never read.

The derivation is in the doc.