hey all,
I wrote a simple orbit simulator out of boredom, figured I'd share it.
written in vb.net 2008

you can get the code here:
http://www.frostbytecafe.com/game/planetsim.rarplanetengine class contains these functions:
Init()
Unload()
Render()
AddBody (BodyName, BodyRadius, BodySpinSpeed, AxisTilt, TextureName, NormalTextureName)
- BodyName:string - planet name
- BodyRadius:single - planet radius
- BodySpinSpeed:single - the number of hours it takes for a full spin
- AxisTilt:single - the axial tilt of the planet (this should be a vector, only works on x axis rotation in this)
- TextureName:string - texture for planet
- NormalTextureName:string - normal texture for planet
SetBodyOrbit(OrbitingPlanetName, ParentToOrbit, EllipsoidScale, OrbitSpeed, OrbitRadius,
OrbitTilt)
- OrbitingPlanetName:string - name of plant to make orbit
- ParentToOrbit:string - the parent that will be orbited around
- EllipsoidScale:vector - 1,1,1 is a circular orbit
- OrbitSpeed:single - number of hours it takes to complete 1 orbit
- OrbitRadius:single - distance from parent
- OrbitTilt:vector - rotational values for rotating the orbit plane
Update(SimSpeed)
the orbit tilt is kind of hacky, but i'm poor at math

EDIT: all images courtesy of google images, normals produced in crazybump