benilla-re systems structs docs

SetDoodadDefBounds

function · terrain · primitive

Address
0x6952a0 · 299 bytes, up to 0x6953ca
Signature
void __thiscall (void *this)
Meaning
Sets a def's sphere and two world boxes from its model's bounds and its matrix
Confidence
verified, proof one
Finding
terrain/doodads#doodad-bounds
Test
terrain::chunk_fade_scale_difftest

Finding: Doodad bounds in terrain: doodad defs

0x6952a0 sets a def's world bounds from its model. The sphere centre is the model's bounding centre moved by the def's matrix, the radius the model's bounding radius times the scale, and the two boxes (the bounding and the collision box) are the model's moved by the matrix into +0x44 and +0x14c.

The derivation is in the doc.

Callers 3

Callees 6

Calls and jumps by a bare address, from tables/calls.tsv.