This will increase the stability of the created planetar system. Most
of the central planets collapse into one large object, which will keep
most of the system more stable.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
double velocity;
double distance;
double velocity;
double distance;
- distance = radius * get_random_double();
+ distance = radius * pow(get_random_double(), 2);
velocity = sqrt(total_mass / radius);
velocity *= pow(distance / radius, 0.2);
velocity = sqrt(total_mass / radius);
velocity *= pow(distance / radius, 0.2);