Reply to comment

Matt Barton
Matt Barton's picture
Online
Joined: 01/16/2006
Math for rotating planets
gilgamesh wrote:

It's nice to see some progress on this.

What do you mean by "in sync with their orbit"? You want night and day rhythm? The math for rotating the planets is really quite simple. (Just sine and cosine once in the sun's frame of reference and once in the planet's. Elliptic orbits would definitely look cool. )

The force fields could get interesting though. Can't you just tell Unity to attach force fields to the planets?

Oh, is that all? I'm clueless! :(

I don't think the rotation of the planets looks quite right. Ideally, they'd just rotate horizontally, but as they're rotated around the sun, their axes are changing. At least, that's what it looks like to me. I might be able to figure out if I keep tweaking it. I don't care at all if it's the same as our own solar system or anything like that; just as long as it looks like what a layperson like me would expect to see.

I haven't looked into how gravity works in Unity yet. I know it's there as part of the physics functions. I just don't know how hard it will be to change from the regular up/down gravity to something like this. I just hope I can adapt whatever is built in to work, because trying to work out formulas on my own will definitely be far above my skill.

Update - I got it. Just a trick of lining the planets up rightly to begin with.

n/a

Reply

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Images can be added to this post.
  • You may quote other posts using [quote] tags.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.