AudunVN / Navmap

Browser-based system map viewer for the Freelancer mod Discovery.
http://space.discoverygc.com/navmap
7 stars 8 forks source link

Fix ship rotation parsing #21

Closed AudunVN closed 8 years ago

AudunVN commented 8 years ago

image

AudunVN commented 8 years ago

Just do it the simple way instead of wasting time on trying to guess how it's parsed: Set up a case for the sign of each of the three rotation variables (eight, to be precise - not that bad) and figure out what kind of offset is required for each case.

AudunVN commented 8 years ago

This is a known issue with the /pos command; replaced with ship orientation derived from the velocity vector calculated using the two latest positions.