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

IndexNamespace IndexIMyShipController

Summary

public bool TryGetPlanetElevation(MyPlanetElevation detail, out double elevation)

Attempts to get the elevation of the ship in relation to 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 planet gravity

Parameters

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