Click or drag to resize
IMyShipControllerTryGetPlanetPosition Method
v01.180.0 (Beta)

[This is preliminary documentation and is subject to change.]

Attempts to get the world position of the nearest planet. This method is only available when a ship is within the gravity well of a planet.

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
bool TryGetPlanetPosition(
	out Vector3D position
)

Parameters

position
Type: Vector3D

Return Value

Type: Boolean
See Also