s_wmoKeptCount
global · models
- Address
0xce66fc· 4 bytes, up to0xce66ff- Type
uint32_t- Meaning
- Holds the count of entries in the kept-face array 0xcde648
- Confidence
- verified, proof one
- Finding
- models/collisionquery#box-descent-and-face-test
Finding: Box descent and face test in models: WMO movement query
The box descent tests a face only by its triangle's bounding box. 0x6b91c0 descends the group's
tree with 0x6bc1c0, whose leaf 0x6bca50 skips each face by the mask and the visited bit and calls
0x6b8b70 on the face's three vertices and the whole query box. That kernel reports separated when,
on any coordinate axis, all three vertices lie beyond the box on one side, by the sign bit of the
difference, so a touching triangle is kept. It has no plane, edge, winding or epsilon test. A kept index is stored, 0x6b8e50 packs the survivors and
0x671cc0 emits one 52-byte facet per face (normal from the cross product, d = −n·v0, three world
vertices) with no orientation test.
The derivation is in the doc.