s_portalMapObject
global · terrain
- Address
0xca802c· 4 bytes, up to0xca802f- Type
void *- Meaning
- Holds the map object instance the interior flood last ran for
- Confidence
- verified, proof one
- Finding
- terrain/portals#camera-inside-a-map-object
Finding: Camera inside a map object in terrain: map object visibility
0x685a90 prepares the flood for the map object that holds the camera. It moves the camera
position and the camera target into the model's space with the instance matrix +0xd4, stores the
unit direction between them and the offset of the plane through the camera (the plane of the
view axis), loads matrix slot 8 with the translation by minus the camera times the instance matrix
+0x94, registers the group callback 0x685d70, and runs 0x6b3b20 with the model, the
instance matrix and the groups the camera is in.
The derivation is in the doc.