Removed preCalc
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user