Search the Community
Showing results for tags 'latitude'.
The search index is currently processing. Current results may not be complete.
-
Surface Coordinates (Lat/Long) to Distance Calculator Have you ever wondered how far and long you would have to drive a rover to get from one place to another? Maybe you're planning a Science rover expedition, or maybe you want to place a base within driving distance of other bases or new Science biomes. Either way, here's a simple spreadsheet that calculates distance between two points on any planet/moon in KSP: https://docs.google.com/spreadsheets/d/11ahybKKvft5v7hfzkBEnTdFKhT_f-YsI3ITXKMeZDUw/edit?usp=sharing Make a copy of the sheet and you'll be free to make your own calculations between any two points on a planet or moon in KSP. All landed crafts will show their coordinates if you hover over them in map view. Note: The spreadsheet doesn't account for hills or elevation on planets. Coordinates must be in decimal format, so 2* 25' 48" N 17* 22' 40" E would look like 2.2548 and 17.2240, while 2* 25' 48" S 17* 22' 40" W would look like -2.2548 and -17.2240. Enjoy!
-
Hello all. I am hoping someone out there can help me with an issue I am having. I am trying to expand my Walkabout mod to work with relocated KSCs (à la Kopernicus or Galileo). To do so, I need to reliably locate a fixed spot on the KSC grounds. It doesn't matter which spot it is, but I need to be able to get the coordinates of, let's say, the flagpole whether or not Galileo is installed. I tried using code similar to the following: var Kerbin = Planetarium.fetch.Home; PQSCity ksc = null; foreach (var city in Kerbin.pqsController.GetComponentsInChildren<PQSCity>(true)) { if (city.name == "KSC") { ksc = city; break; } } var kscVectorPosition = ksc.transform.position; var latitude = Kerbin.GetLatitude(kscVectorPosition); var longitude = Kerbin.GetLongitude(kscVectorPosition); var altitude = Kerbin.GetAltitude(kscVectorPosition); When I do this with a plain vanilla install of KSC (v1.2.2), it gives me a point that is in the centre of the crawlway about 1/4 of the way between the VAB and the launchpad. However, when Galileo is installed (also with v1.2.2), it gives me a point that is near the edge of the R&D buildings. Is there a way that I can reliably get the coordinates of a point in the KSC?