Setting Parent Body for a SpaceLocation
Posted: Sun Nov 17, 2024 12:49 am
For now we have :
distance :: double : Distance from the location's parent body in map coordinates.
orientation :: RealOrientation : Angle in relation to the parent body.
It would be interesting to add
parent :: string : Name of the parent SpaceLocation, optionnal, if not set it would work like in current version
What will it affect :
- Position of the SpaceLocation is now related to the indicated parent SpaceLocation using distance and orientation
- SpaceLocation Orbit is drawn around the parent SpaceLocation
- SpaceConnection arc is drawn around the nearest common ancestor, unless the only common ancestor is universe origin or one of the connected space location in this case it will go in straight line
What it will permit :
- adding another star system with his own set of planets with orbits correctly displaying around their suns
- adding moons to planets with orbits around planets instead of sun
- Ease creation of new SpaceLocation around others
- Rearanging the map by changing distance and orientation of one SpaceLocation would move their child body with them
What other modification is needed in the base game :
The Sun need to be a defined Space Location even if no path SpaceConnection goes to it.
It will "orbit" around the universe origin. it can even have distance=0 to be at the center of the universe
Planets need to have parent="sun"
Similar requests :
- Allow to set a space location's parent
- Orbit Line Movement
- Space Connection Curving
Other works :
- PlanetsLib
The community has been using Planetslib to implement this proposal. They need to fake the orbits by registering a sprite for it, this result in a lot of sprites only for orbits, the rest of the PlanetsLib api has the intent to implements this sugestion.
Example of actual mods that would directly benefit :
- real-starry-universe
- space-exploration
- factorissimo-2-notnotmelon
- intercontinental-rocketry
distance :: double : Distance from the location's parent body in map coordinates.
orientation :: RealOrientation : Angle in relation to the parent body.
It would be interesting to add
parent :: string : Name of the parent SpaceLocation, optionnal, if not set it would work like in current version
What will it affect :
- Position of the SpaceLocation is now related to the indicated parent SpaceLocation using distance and orientation
- SpaceLocation Orbit is drawn around the parent SpaceLocation
- SpaceConnection arc is drawn around the nearest common ancestor, unless the only common ancestor is universe origin or one of the connected space location in this case it will go in straight line
What it will permit :
- adding another star system with his own set of planets with orbits correctly displaying around their suns
- adding moons to planets with orbits around planets instead of sun
- Ease creation of new SpaceLocation around others
- Rearanging the map by changing distance and orientation of one SpaceLocation would move their child body with them
What other modification is needed in the base game :
The Sun need to be a defined Space Location even if no path SpaceConnection goes to it.
It will "orbit" around the universe origin. it can even have distance=0 to be at the center of the universe
Planets need to have parent="sun"
Similar requests :
- Allow to set a space location's parent
- Orbit Line Movement
- Space Connection Curving
Other works :
- PlanetsLib
The community has been using Planetslib to implement this proposal. They need to fake the orbits by registering a sprite for it, this result in a lot of sprites only for orbits, the rest of the PlanetsLib api has the intent to implements this sugestion.
Example of actual mods that would directly benefit :
- real-starry-universe
- space-exploration
- factorissimo-2-notnotmelon
- intercontinental-rocketry