Camera#

class Camera#

Controls the game’s camera. Obtained by calling SpaceCenter.Camera.

CameraMode Mode { get; set; }#

The current mode of the camera.

Game Scenes:

Flight

void NextCamera ()#

Switch to the next available camera. In flight, this moves to the next flight camera mode. In IVA, it moves the view to the next crew member in the active vessel.

Game Scenes:

Flight

void PreviousCamera ()#

Switch to the previous available camera. In flight, this moves to the previous flight camera mode. In IVA, it moves the view to the previous crew member in the active vessel.

Game Scenes:

Flight

float Pitch { get; set; }#

The pitch of the camera, in degrees. A value between Camera.MinPitch and Camera.MaxPitch

Game Scenes:

Flight

float Heading { get; set; }#

The heading of the camera, in degrees.

Game Scenes:

Flight

float Distance { get; set; }#

The distance from the camera to the subject, in meters. A value between Camera.MinDistance and Camera.MaxDistance.

Game Scenes:

Flight

float FoV { get; set; }#

The Field of View of the camera, in degrees. A value between Camera.MinFoV and Camera.MaxFoV.

Game Scenes:

Flight

float MinPitch { get; }#

The minimum pitch of the camera.

Game Scenes:

Flight

float MaxPitch { get; }#

The maximum pitch of the camera.

Game Scenes:

Flight

float MinDistance { get; }#

Minimum distance from the camera to the subject, in meters.

Game Scenes:

Flight

float MaxDistance { get; }#

Maximum distance from the camera to the subject, in meters.

Game Scenes:

Flight

float MinFoV { get; }#

The minimum field of view the camera in degrees.

Game Scenes:

Flight

float MaxFoV { get; }#

The maximum field of view the camera in degrees.

Game Scenes:

Flight

float DefaultDistance { get; }#

Default distance from the camera to the subject, in meters.

Game Scenes:

Flight

float DefaultFoV { get; }#

The default field of view the camera in degrees.

Game Scenes:

Flight

CelestialBody FocussedBody { get; set; }#

In map mode, the celestial body that the camera is focussed on. Returns null if the camera is not focussed on a celestial body. Returns an error is the camera is not in map mode.

Game Scenes:

Flight

Vessel FocussedVessel { get; set; }#

In map mode, the vessel that the camera is focussed on. Returns null if the camera is not focussed on a vessel. Returns an error is the camera is not in map mode.

Game Scenes:

Flight

Node FocussedNode { get; set; }#

In map mode, the maneuver node that the camera is focussed on. Returns null if the camera is not focussed on a maneuver node. Returns an error is the camera is not in map mode.

Game Scenes:

Flight

CrewMember FocussedCrewMember { get; set; }#

In IVA mode, the crew member whose view the camera is showing. Returns null if no crew member is in view. Returns an error if the camera is not in IVA mode. Setting this moves the view to the given crew member, switching the camera to IVA mode if it is not already. The crew member must be in the active vessel, and in a part whose interior the game has placed them in.

Game Scenes:

Flight

enum CameraMode#

See Camera.Mode.

Automatic#

The camera is showing the active vessel, in “auto” mode.

Free#

The camera is showing the active vessel, in “free” mode.

Chase#

The camera is showing the active vessel, in “chase” mode.

Locked#

The camera is showing the active vessel, in “locked” mode.

Orbital#

The camera is showing the active vessel, in “orbital” mode.

IVA#

The Intra-Vehicular Activity view is being shown.

Map#

The map view is being shown.