rSimulate / encyclopedia-galactica

0 stars 2 forks source link

Can we generalize solar system objects? #1

Open iontom opened 11 years ago

iontom commented 11 years ago

solsysObj.cs

    public planetData(string ObjectID, string ParentID, Array OwnersList, Array ObjectParams(), Array OrbitParams(), ObjectType) // OwnerList since planets have owners per hex.  
        : base("solsysObj", ObjectID, ParentID, OwnerID, OrbitParams, ObjectType)

Not sure on syntax, but if we had orbitparams in its own file and object type as =[star(type), terrestrial(type), rocky, gas giant, ice giant, minor, asteroid, comet, ...etc] and then have OrbitParams[radius, semimajor, radvelocity, eccentricity, inclination, startingphase]

iontom commented 11 years ago

The use case is that some systems migh have multiple stars around a shared barycenter. And planets/moons can be interchangable in terms of nested objects.

Eventually I'd love to use Newton to derive Kepler, but stable orbits work for now.