s_portalCameraPoint
global · terrain
- Address
0xca7edc· 12 bytes, up to0xca7ee7- Type
float[3]- Meaning
- Holds the camera position in the space of the map object the portal flood runs in
- 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.