![Smile :)](./images/smilies/icon_smile.gif)
I'm working on a semi-educational game written in C++, which includes a solar system (Sun, planets, moons, and a few minor objects like comets) representation that can be sped up and slowed down. Whilst it doesn't need to be too accurate, I would like to at least put some effort into making this as accurate as possible rather than 'faking it'.
I suppose my ideal situation would be to find a function that returns position/orientation of a body, given some setup data and a time. I realise that this is a very complicated issue, but I'm actually having trouble finding any offline example code to get started with. There's lots of online examples though.
If anyone could point me at either the relevant place in Celestia, or another place that would help get me started - or even some tips on how to approach this, I'd greatly appreciate it - I've been looking on and off for a few days now but haven't really found anything simple enough to gets started with. If I do get up and running, I think I'll have to write a good tutorial up!