ScaleMatrix
function · cmath · primitive
- Address
0x7bdd00· 86 bytes, up to0x7bdd55- Signature
void __thiscall (NTempest::C44Matrix *this, float s)- Meaning
- Multiplies the upper-left 3x3 of a 4x4 matrix by a float, each product stored
- Confidence
- verified, proof one
- Finding
- terrain/files#doodad-placements
- Test
cmath::mat34_scale3
Finding: Doodad placements in terrain: files
0x694bc0(name, entry, origin) makes the CMapDoodadDef for a 36-byte MDDF entry, or returns the
existing one with the same unique id (+0x04). The position is (o.x − f+0x10, o.y − f+0x08,
o.z + f+0x0c), o being (17066.666, 17066.666, 0); the scale is the word +0x20 / 1024. The matrix
at +0xcc is the identity translated to the position, rotated about z by f+0x18 degrees + π,
about y by f+0x14 degrees and about x by f+0x1c degrees, then scaled.
The derivation is in the doc.
Callers 13
- CGGameObject_C::OnModelLoaded objectlayer
- CGGameObject_C::OnCreate objectlayer
- CGUnit_C::BuildSwimTransform objectlayer
- CGObject_C::UpdateNode objectlayer
- BuildPlantedEffectMatrix objectlayer
- UpdateSpellEffectObject objectlayer
- PlaceDoodadDef terrain
- CreateGroupDoodadDef terrain
- DrawDetailDoodadBatch terrain
- CMapChunk::DrawLayers terrain
- CMapChunk::DrawLayersShader terrain
- CParticleEmitter2::DrawModelParticle models
- InvertAffineMatrix cmath
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.