CGGameObject_C::OnModelLoaded
function · objectlayer · primitive
- Address
0x5f7910· 484 bytes, up to0x5f7af3- 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
- SetVector3 spline
- CGGameObject_C::ApplyArtKit objectlayer
- CGGameObject_C::PlayAnimationEvent objectlayer
- ScaleVector3 objectlayer
- SyncLightNode terrain
- TransformBox unassigned
- CM2Model::SetBaseTransform models
- CM2Model::SetUserData models
- CM2Model::GetBoundingBox models
- CM2Model::GetCollisionBox models
- TranslateMatrix cmath
- ScaleMatrix cmath
- RotateMatrixByQuaternion cmath
Calls and jumps by a bare address, from tables/calls.tsv.