benilla-re systems structs docs

s_corpseFacets

global · objectlayer

Address
0xc4bfa4 · 32 bytes, up to 0xc4bfc3
Type
uint32_t[8]
Meaning
Holds the two arrays the ground normal query fills: triangle records and a second list, 256 entries each
Confidence
verified, proof one
Finding
objectlayer/corpses#the-ground-normal

Finding: The ground normal in objectlayer: corpses

Slot 8 (0x5d68c0) gives the corpse's ground normal, worked out once. With the model loaded, a skeleton that is not submerged first snaps its position to the ground: it traces from half a unit above the position to ten units below, and a hit becomes the new position. It then queries the world triangles inside the model's box, scaled and moved to the position and lowered by half its height, and the normal is the mean of the normals of the triangles that face up.

The derivation is in the doc.