Cosmic Social Distancing
This mod adjusts the positions of planets to avoid any being closer than 5000km. This can be useful when having modded planets installed that do not account for each other’s positions.
It works by incrementally pushing apart pairs of planets until all are separated by at least 5000km.
Further details
- The algorithm applies to all space locations, not just planets.
- Planets of larger size than the default (i.e. magnitude >= 1) are given extra room, and conversely for smaller planets.
- The base minimum distance is configurable in settings.
- This parameter is a starmap measurement ‘on the screen’. When we say the default is 5000km we’re using a measurement scale implied by the length of the connections from Nauvis in vanilla Space Age.
- Locations registered as the parent (or grandparent, ...) of another location in PlanetsLib are treated as exceptions; two such locations will not repel each other.
- Locations with
hidden=trueor the PlanetsLib fieldsprite_only=trueare also excluded.
See also
Documentation for modders
- The algorithm is sensitive to the following fields on prototypes.
cosmic_social_distancing_ignore— Boolean — Iftrueon a planet or space location, it is excluded it from the algorithm: it will not affect other locations and its position will be unchanged.