SimpleModelUpdateTransform
function · ui · primitive
- Address
0x76d1a0· 159 bytes, up to0x76d23e- Signature
void __thiscall (void *this)- Meaning
- Runs OnUpdateModel, then rebuilds the model's root matrix from position, facing and scale
- Confidence
- verified, proof one
- Finding
- ui/modelview#root-transform
- Test
ui::glue_76d1a0_scale
Finding: Root transform in ui: Model frames, camera and paint
Each paint rebuilds the model's root matrix as translate(layout scale · position) · rotate(facing about +Z) · scale(s) with s = G48 · (5/3) · modelScale · layoutScale, where G48 is the screen's y scale and
layoutScale is the frame's effective scale. Nothing is cached: the 4×4 is overwritten whole every time.
The first act of the transform step is to run the frame's OnUpdateModel handler when it has one.
The derivation is in the doc.
Callers 1
Callees 3
- MultiplyByScreenScaleY screencoord
- FrameScriptExecute ui
- CM2Model::SetBaseTransformTRS models
Calls and jumps by a bare address, from tables/calls.tsv.