Jump to content

Rotation and Rotation Rate of Celestial Bodies?


Recommended Posts

Hi fellow modders,

Quick question for the community. I'm interested in figuring out two things in KSP at the moment: the rotation rate of each of the celestial bodies, and the amount of rotation at time = 0. Anyone know how I might go about accessing this information using the KSP API? Or is it available anywhere else? I'm looking to incorporate this information into KSP TOT 0.12.2...

Thanks!

Link to comment
Share on other sites

Hi fellow modders,

Quick question for the community. I'm interested in figuring out two things in KSP at the moment: the rotation rate of each of the celestial bodies, and the amount of rotation at time = 0. Anyone know how I might go about accessing this information using the KSP API? Or is it available anywhere else? I'm looking to incorporate this information into KSP TOT 0.12.2...

Thanks!

This is a partial solution. This post contains a link to source code, which contains a planetInfos.txt file. This table contains everything needed to calculate whatever you would like (including sidereal rotation).

This is not a great way to obtain this information (it could be wrong), but I think it's right. I would be interested to know where in the API you can get all of this, too.

I don't know the name for what you want, but I assume you want to know the orientation of the planetary bodies at time = 0. The rotation rates are strictly constant (I'd expect), so once you know the initial configuration you know them all. But I have no clue what they would be.

Link to comment
Share on other sites

Hi fellow modders,

Quick question for the community. I'm interested in figuring out two things in KSP at the moment: the rotation rate of each of the celestial bodies, and the amount of rotation at time = 0. Anyone know how I might go about accessing this information using the KSP API?

Looks like CelestialBody has everything you'd need: initialRotation, rotationPeriod, tidallyLocked, and rotates are all accessible

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