Jump to content

Why AliceWorld??


Recommended Posts

28 minutes ago, martincmartin said:

Why are Orbit's pos and vel in "AliceWorld" (y & z flipped)?  Other than confusing developers, what purpose does it serve?  Easier to translate into UI or something?

 

That one of the mystery of KSP code you are unlikely to find out because AFAIK no one around knows.

Link to comment
Share on other sites

I just found one possible reason: if you have a direction (e.g. the direction towards prograde in your vessel's coordinates), the recommended way to get a rotation object from that is to use Quaternion.LookRotation().  But that assumes the "forward" direction is along z, and KSP assumes its along y.  That is, they're separated by a rotation of 90 degrees about the X axis, which swaps Y & Z (as well as changing the sign of one, but that doesn't matter for LookRotation().)

Link to comment
Share on other sites

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...