Cosmic Social Distancing
This mod adjusts the positions of planets to be at least 5000km apart (as measured 'on the screen'). 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. The measurement scale is that implied by the lengths of connections from Nauvis in vanilla space age.
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.
- 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.