Camera#
- class Camera#
The game’s main camera. Obtained from
KSA.Camera.- CameraMode Mode { get; set; }#
The mode of the camera.
- Game Scenes:
All
Note
Setting
CameraMode.IVAwhile the camera is not focused on a vehicle with a crew seat setsCameraMode.Orbitinstead, as the game does. A change of mode releases the active vehicle’s held rotation and translation inputs.
- float Azimuth { get; set; }#
The angle of the camera around the focused object, in degrees. Throws an exception in any mode other than orbit and map.
- Game Scenes:
All
- float Elevation { get; set; }#
The angle of the camera above the plane it orbits in, in degrees, between -90 and 90. Throws an exception in any mode other than orbit and map.
- Game Scenes:
All
- float Distance { get; set; }#
The distance from the camera to the focused object, in meters. Throws an exception in any mode other than orbit and map.
- Game Scenes:
All
Note
The camera moves smoothly to a new distance, and stays at least the focused object’s radius from it in map mode, and half its radius in orbit mode.
- float FieldOfView { get; set; }#
The camera’s vertical field of view, in degrees, between 15 and 120.
- Game Scenes:
All
- Vehicle FocusedVehicle { get; set; }#
Returns the vehicle the camera is focused on, or
nullif it is focused on something else, and sets the focus to a vehicle.- Game Scenes:
All
Note
Setting the focus leaves the active vehicle as it is.