This commit is contained in:
Yggdrasil75
2026-03-04 14:34:40 -05:00
parent 4478bc1845
commit 31fb9ffedb

View File

@@ -181,6 +181,7 @@ public:
Octree<Particle> grid; Octree<Particle> grid;
std::vector<PlateConfig> plates; std::vector<PlateConfig> plates;
std::mt19937 rng = std::mt19937(42); std::mt19937 rng = std::mt19937(42);
bool starAdded = false;
planetsim() { planetsim() {
config = planetConfig(); config = planetConfig();
@@ -780,6 +781,7 @@ public:
} }
void addStar() { void addStar() {
if (starAdded) return;
TIME_FUNCTION; TIME_FUNCTION;
const float realEarthRadiusKm = 6371.0f; const float realEarthRadiusKm = 6371.0f;
@@ -836,6 +838,7 @@ public:
grid.optimize(); grid.optimize();
config.currentStep = 1; config.currentStep = 1;
std::cout << "Star generation complete. Placed " << starPoints << " nodes." << std::endl; std::cout << "Star generation complete. Placed " << starPoints << " nodes." << std::endl;
starAdded = true;
} }
void addMoon() { void addMoon() {