CM2Model::GetBoundingBox
function · models · orchestration
- Address
0x713640· 54 bytes, up to0x713675- Meaning
- Copies the bounding box of an instance's model
- Confidence
- verified, proof one
- Finding
- models/model#bounds
Finding: Bounds in models: the instance
GetBoundingSphere returns the centre of the header's bounding box and its radius: x and y are
(min + max)·0.5 from a sum at the FPU's 53-bit precision, z rounds the sum to a float first. The radius is
header +0xcc. GetBoundingBox and GetCollisionBox copy the six floats at +0xb4 and +0xd0.
The derivation is in the doc.
Callers 13
- CGCorpse_C::GetGroundNormal objectlayer
- CGGameObject_C::OnModelLoaded objectlayer
- CGUnit_C::ComputeSelectionRadius objectlayer
- CGObject_C::RefreshBounds objectlayer
- CMissile::Advance objectlayer
- CEffect::Update objectlayer
- UpdateSpellEffectObject objectlayer
- CWorld::IsPointInEntity terrain
- CWorld::GetEntityBox terrain
- SetDoodadDefBounds terrain
- AnchorPlacement terrain
- CMapDoodadDef::Repose terrain
- SimpleModelModelReady ui
Callees 1
- CM2Model::WaitForShared models
Calls and jumps by a bare address, from tables/calls.tsv.