Removed preCalc

This commit is contained in:
2022-05-04 10:13:11 +02:00
parent 1ab9c3650e
commit bf9a6c6d43
3 changed files with 15 additions and 27 deletions

View File

@ -22,7 +22,7 @@ public class Simulation {
// set some system parameters
public static final double SECTION_SIZE = 2 * AU; // the size of the square region in space
public static final int NUMBER_OF_BODIES = 22;
public static final int NUMBER_OF_BODIES = 220;
public static final double OVERALL_SYSTEM_MASS = 20 * SUN_MASS; // kilograms
public static void main(String[] args) {
@ -68,7 +68,7 @@ public class Simulation {
}
octree.applyForces(bodies, 1);
if ((seconds % 3600) == 0) {
if ((seconds % 60) == 0) {
cd.clear(Color.BLACK);
for (Body body : bodies) {
body.draw(cd);