benilla-re systems structs docs

CM2Model::GetPositionInScene

function · models · orchestration

Address
0x7105d0 · 36 bytes, up to 0x7105f3
Meaning
Transforms an instance's world position by its scene's matrix
Confidence
verified, proof one
Finding
models/lights#instance-lighting

Finding: Instance lighting in models: lights

An instance draws with its parent's record when it has a parent created without flag 1, else with its own at +0x204. Building its own: the record starts at the world translation +0x12c through the scene matrix, radius 0; it takes the scene's lights for that point, then the owner's callback +0x3bc(instance, record, +0x3c0) when set, then derives the dominant light and moves the lights to view space. When the instance has attachment states, its children with a resolved attachment index update after it.

The derivation is in the doc.

Callers 2

Callees 1

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