Cosmic Social Distancing
This mod adjusts the positions of planets to avoid any being closer than 3000km. This can be useful when having modded planets installed that do not account for each other’s positions.
The mod works by incrementally pushing apart pairs of planets until all are separated by at least this distance.
Further details
- The algorithm also applies to other space locations beyond 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 3000km 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=true
or the PlanetsLib fieldsprite_only=true
are also excluded.
See also
Documentation for modders
- The algorithm is sensitive to the following fields on prototypes.
cosmic_social_distancing_ignore
— Boolean — Iftrue
on a planet or space location, it is excluded it from the algorithm: it will not affect other locations and its position will be unchanged.