space_ex v0.5.1 SpaceEx.SpaceCenter.Camera

Controls the game's camera.

Obtained by calling SpaceEx.SpaceCenter.camera/1.

Link to this section Summary

Functions

Default distance from the camera to the subject, in meters

The distance from the camera to the subject, in meters

In map mode, the celestial body that the camera is focussed on

In map mode, the maneuver node that the camera is focussed on

In map mode, the vessel that the camera is focussed on

The heading of the camera, in degrees

Maximum distance from the camera to the subject, in meters

The maximum pitch of the camera

Minimum distance from the camera to the subject, in meters

The minimum pitch of the camera

The current mode of the camera

The pitch of the camera, in degrees

The distance from the camera to the subject, in meters

In map mode, the celestial body that the camera is focussed on

In map mode, the maneuver node that the camera is focussed on

In map mode, the vessel that the camera is focussed on

The heading of the camera, in degrees

The current mode of the camera

The pitch of the camera, in degrees

Link to this section Functions

Link to this function default_distance(this)

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

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

A value between SpaceEx.SpaceCenter.Camera.min_distance/1 and SpaceEx.SpaceCenter.Camera.max_distance/1.

Link to this function focussed_body(this)

In map mode, the celestial body that the camera is focussed on.

Returns nil if the camera is not focussed on a celestial body. Returns an error is the camera is not in map mode.

Link to this function focussed_node(this)

In map mode, the maneuver node that the camera is focussed on.

Returns nil if the camera is not focussed on a maneuver node. Returns an error is the camera is not in map mode.

Link to this function focussed_vessel(this)

In map mode, the vessel that the camera is focussed on.

Returns nil if the camera is not focussed on a vessel. Returns an error is the camera is not in map mode.

The heading of the camera, in degrees.

Link to this function max_distance(this)

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

Link to this function max_pitch(this)

The maximum pitch of the camera.

Link to this function min_distance(this)

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

Link to this function min_pitch(this)

The minimum pitch of the camera.

The current mode of the camera.

The pitch of the camera, in degrees.

A value between SpaceEx.SpaceCenter.Camera.min_pitch/1 and SpaceEx.SpaceCenter.Camera.max_pitch/1

Link to this function set_distance(this, value)

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

A value between SpaceEx.SpaceCenter.Camera.min_distance/1 and SpaceEx.SpaceCenter.Camera.max_distance/1.

Link to this function set_focussed_body(this, value)

In map mode, the celestial body that the camera is focussed on.

Returns nil if the camera is not focussed on a celestial body. Returns an error is the camera is not in map mode.

Link to this function set_focussed_node(this, value)

In map mode, the maneuver node that the camera is focussed on.

Returns nil if the camera is not focussed on a maneuver node. Returns an error is the camera is not in map mode.

Link to this function set_focussed_vessel(this, value)

In map mode, the vessel that the camera is focussed on.

Returns nil if the camera is not focussed on a vessel. Returns an error is the camera is not in map mode.

Link to this function set_heading(this, value)

The heading of the camera, in degrees.

Link to this function set_mode(this, value)

The current mode of the camera.

Link to this function set_pitch(this, value)

The pitch of the camera, in degrees.

A value between SpaceEx.SpaceCenter.Camera.min_pitch/1 and SpaceEx.SpaceCenter.Camera.max_pitch/1