planet motion -- problems getting rotation correct

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Fleegle
Posts: 25
Joined: 10.04.2002
With us: 22 years 10 months
Location: Canada
Contact:

planet motion -- problems getting rotation correct

Post #1by Fleegle » 14.04.2002, 20:51

I'm having trouble with a planet I'm trying to make. I can't figure out how to make it rotate properly. My planet always has one side pointed towards its sun. How do I make it so it rotates similarly to Earth?

-Fleegle

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 23 years
Location: Seattle, Washington, USA

Post #2by chris » 14.04.2002, 21:02

By default, a body has synchronous rotation; that is, its rotation period is equal to its orbital period, so one side always faces the sun/planet. To change this behavior, add a line like:

RotationPeriod 23.9344694

to the description. This sets the rotation period of the body to the given number of hours.

--Chris


Return to “Development”