Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

Allow the velocity to be a vector #149

Open xZise opened 10 years ago

xZise commented 10 years ago

Hi, in #145 it was noted that velocity doesn't default to the orbital velocity vector. This patch should do the trick: VELOCITY is then the orbital vector but additionally stores the surface vector.

DISCLAIMER: As my computer is not set up for development and testing C#, I'm not sure that this code works as promised. (I really have to set up my computer for developing KSP plugins)

jbru commented 10 years ago

I just compiled the new code and tested it, it works as intended. Velocity returns the orbit velocity vector and now you can use suffixes directly, such as velocity:mag to get the velocity; accessing the surface velocity with velocity:surface also still works the same as before.