AddDetailDoodad
function · terrain · host
- Address
0x6b2920· 414 bytes, up to0x6b2abd- Signature
uint8_t __thiscall (void *this, void *batch, uint32_t effect, const float *position, float scale, float angle)- Meaning
- Adds a 0x2c-byte placement to a slot of a chunk's batch and grows the slot's counts
- Confidence
- inferred
- Finding
- terrain/detail#detail-doodad-batch
Finding: Detail doodad batch in terrain: detail doodads
0x6b2920 adds a placement to the chunk's batch. The batch has four slots of 0x24 bytes. It
takes the first slot that already holds the doodad's model or has room by the model's counts
and appends a 0x2c-byte placement: the shadow flag at +0x0, the doodad id +0x4, the position +0x8, sine,
cosine and scale +0x14, and the plane normal +0x20; the slot's vertex and index counts
grow by the model's.
The derivation is in the doc.
Callers 1
- CMapChunk::CreateDetailDoodads terrain
Callees 4
- CompareHandles base
- FitsDetailDoodadBuffers terrain
- GrowDetailDoodadPlacements terrain
- CM2Model::GetHeader models
Calls and jumps by a bare address, from tables/calls.tsv.