Jump to content

Navigational aid: mod that shows distance to nav mark


Rosuav

Recommended Posts

https://github.com/Rosuav/KerbalSpaceModding

This is barely more than a "Hello World" or "My First Mod", but hey, maybe there's something in here that could be of use. If you're attempting surface navigation to a waypoint, the navball can tell you how to point your craft, but it won't tell you how far you still have to go. This mod looks at your lat/long and the lat/long of the navigation mark, calculates the angle between them, and the great circle distance (approximately equal to the shortest distance across the surface, ignoring your altitude).

Question: How can this best be brought in-game? Currently, its output is made to a log file, so the way to read it is to tail|grep that log (as mentioned in the README, which assumes Linux).

Question: Would it be (a) possible, and (b) useful, to show mission-elapsed-time at arrival time? Currently it says "1900 seconds" but it's not really counting down, since your velocity will change slightly.

Code is all MIT licensed.

Link to comment
Share on other sites

On 12/29/2021 at 5:33 PM, Rosuav said:

How can this best be brought in-game?

Congrats on your first mod.

FYI, the Waypoint Manager mod includes distance and time to reach a waypoint. It displays it as HUD text. You may want to review the code to see how that mod does things.

 

Link to comment
Share on other sites

  • 2 weeks later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...