Sandbox.ModAPI.Ingame.IMyShipController.TryGetPlanetPosition - bimbam2103/space_engineers GitHub Wiki

IndexNamespace IndexIMyShipController

Summary

public bool TryGetPlanetPosition(out Vector3D position)

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.

Returns

bool

True if cockpit is in gravity of planet

Parameters

⚠️ **GitHub.com Fallback** ⚠️