Camera#

public class Camera#

Controls the game’s camera. Obtained by calling getCamera().

CameraMode getMode()#
void setMode(CameraMode value)#

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 getPitch()#
void setPitch(float value)#

The pitch of the camera, in degrees. A value between Camera.getMinPitch() and Camera.getMaxPitch()

Game Scenes:

Flight

float getHeading()#
void setHeading(float value)#

The heading of the camera, in degrees.

Game Scenes:

Flight

float getDistance()#
void setDistance(float value)#

The distance from the camera to the subject, in meters. A value between Camera.getMinDistance() and Camera.getMaxDistance().

Game Scenes:

Flight

float getFoV()#
void setFoV(float value)#

The Field of View of the camera, in degrees. A value between Camera.getMinFoV() and Camera.getMaxFoV().

Game Scenes:

Flight

float getMinPitch()#

The minimum pitch of the camera.

Game Scenes:

Flight

float getMaxPitch()#

The maximum pitch of the camera.

Game Scenes:

Flight

float getMinDistance()#

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

Game Scenes:

Flight

float getMaxDistance()#

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

Game Scenes:

Flight

float getMinFoV()#

The minimum field of view the camera in degrees.

Game Scenes:

Flight

float getMaxFoV()#

The maximum field of view the camera in degrees.

Game Scenes:

Flight

float getDefaultDistance()#

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

Game Scenes:

Flight

float getDefaultFoV()#

The default field of view the camera in degrees.

Game Scenes:

Flight

CelestialBody getFocussedBody()#
void setFocussedBody(CelestialBody value)#

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 getFocussedVessel()#
void setFocussedVessel(Vessel value)#

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 getFocussedNode()#
void setFocussedNode(Node value)#

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 getFocussedCrewMember()#
void setFocussedCrewMember(CrewMember value)#

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

public enum CameraMode#

See Camera.getMode().

public CameraMode AUTOMATIC#

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

public CameraMode FREE#

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

public CameraMode CHASE#

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

public CameraMode LOCKED#

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

public CameraMode ORBITAL#

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

public CameraMode IVA#

The Intra-Vehicular Activity view is being shown.

public CameraMode MAP#

The map view is being shown.