Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

Sandbox.ModAPI.Ingame.IMyShipController.TryGetPlanetPosition

Malware edited this page Dec 13, 2025 · 22 revisions

DEPRECATION NOTICE

This API documentation is out of date and no longer maintained.

Please visit the new documentation at: https://malforge.github.io/spaceengineers/pbapi

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

Clone this wiki locally