location | object | yes | Camera world position in centimetres |
location.x | float | yes | X (forward axis of the world) |
location.y | float | yes | Y (right axis of the world) |
location.z | float | yes | Z (up axis of the world) |
rotation | object | yes | Camera orientation in degrees |
rotation.pitch | float | yes | Pitch, positive looks up |
rotation.yaw | float | yes | Yaw, positive turns right |
rotation.roll | float | yes | Roll |
forward | object | yes | Unit vector the camera is looking along |
forward.x | float | yes | X component |
forward.y | float | yes | Y component |
forward.z | float | yes | Z component |
right | object | yes | Unit vector pointing to the camera's right |
right.x | float | yes | X component |
right.y | float | yes | Y component |
right.z | float | yes | Z component |
up | object | yes | Unit vector pointing up from the camera |
up.x | float | yes | X component |
up.y | float | yes | Y component |
up.z | float | yes | Z component |
fov | float | yes | Field of view in degrees actually applied this frame. Which AXIS this measures is decided by fov_axis - in inZOI it is the VERTICAL fov, because DefaultEngine.ini sets AspectRatioAxisConstraint=AspectRatio_MaintainYFOV. Use horizontal_fov for any left-right coverage maths |
horizontal_fov | float | yes | Left-right field of view in degrees, derived the same way the projection matrix derives it: equal to fov under MaintainXFOV, otherwise 2*atan(tan(fov/2) * aspect_ratio). At 90 deg vertical and 16:9 this is 121.3 deg, so treating fov as horizontal under-states the covered angle by over 30 percent |
vertical_fov | float | yes | Up-down field of view in degrees, derived the way the projection matrix derives it: equal to fov under MaintainYFOV, which is what inZOI pins, otherwise 2*atan(tan(fov/2) / aspect_ratio) |
fov_axis | string | yes | Which axis fov constrains: MaintainYFOV (fov is vertical), MaintainXFOV (fov is horizontal) or MajorAxisFOV (whichever viewport axis is larger) |
desired_fov | float | yes | Raw DesiredFOV field of the camera cache. inZOI camera modes set the FOV directly every frame, so this normally stays at the engine default of 90 and never converges on fov — do not read it as a target the camera is moving towards |
aspect_ratio | float | yes | Effective width divided by height actually used to render: the viewport aspect, unless the camera constrains the aspect ratio. Use this one for screen projection maths |
camera_aspect_ratio | float | yes | Raw AspectRatio field of the camera cache. Only honoured when constrain_aspect_ratio is true; otherwise it is a leftover engine default (4:3) and does not describe the rendered image |
constrain_aspect_ratio | bool | yes | Whether the camera constrains its aspect ratio (letterboxing/pillarboxing). False during normal inZOI play |
fov_locked | bool | yes | Whether fov came from the camera manager's FOV lock instead of from the camera mode. A locked FOV is exactly the number that was set and does not move while camera modes cross-fade; an unlocked one is a per-frame weighted average over the camera blend stack and changes from frame to frame, so it is only meaningful as a snapshot. camera.observe_from_character sets this lock |
projection_mode | string | yes | Perspective or Orthographic |
ortho_width | float | yes | Orthographic view width; meaningless in perspective mode |
viewport_size | object | yes | Render resolution of the game viewport in pixels |
viewport_size.x | int | yes | Width in pixels |
viewport_size.y | int | yes | Height in pixels |
camera_mode | string | yes | Active inZOI camera mode enum name |
view_target | string | yes | Name of the actor the camera is following, empty if none |
view_target_class | string | yes | Class name of the view target |
view_target_entity_id | entityId | yes | Entity id of the view target, 0 if it is not a game entity |