benilla-re systems structs docs

CGGameObject_C::OnModelLoaded

function · objectlayer · primitive

Address
0x5f7910 · 484 bytes, up to 0x5f7af3
Meaning
Places a game object's loaded model: world matrix, bounds, world box, collision and art kit
Confidence
verified, proof one
Finding
objectlayer/gameobjects#world-transform-and-box
Test
objectlayer::go_animate_bounds_difftest

Finding: World transform and box in objectlayer: game objects

When the model loads, the object's world matrix becomes the translation by its position, the rotation by GAMEOBJECT_ROTATION and the scale by OBJECT_FIELD_SCALE_X; the model gets it and the world entity its box. The world box +0x260 is the model's collision box carried by the matrix, and the object collides when the handler's slot 1 says so and the box is non-empty on every axis. The art kit's textures and models go on, and an animation event waiting for the model plays.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 13

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