I want to control the camera in an old game using head tracking (TrackIR, opentrack, etc.), such control was not provided by the game engine. I'm trying to find the camera coordinates and rotation angles in memory so that I can recalculate them with my program. I haven't worked seriously with 3D until now. So far I have found some float array in memory and am trying to figure out how it works.
In the main menu of the game, when the map is not yet loaded, the values are:
In the loaded map, I have screened 3 states when looking parallel to the axes of the map. In a practical way, moving around the map, I found the coordinates X, Y, Z (Z - height)
Googling a bit, I think it's possible "View matrix" or "Rotate matrix". I ask for help from those who understand 3D, did I determine correctly? Links to articles on how it works are welcome :)