Fix AB4 main loop

Signed-off-by: Lorenz Stechauner <lorenz.stechauner@necronda.net>
This commit is contained in:
2022-04-28 21:48:36 +02:00
parent 35743c64b6
commit 8114ae958b

View File

@ -36,9 +36,7 @@ public class Simulation4 {
while (true) { while (true) {
seconds++; seconds++;
for (Body b : sol.getBodies()) { sol.addForceTo(sol);
sol.addForceFrom(b);
}
sol.update(); sol.update();
if ((seconds % 3600) == 0) { if ((seconds % 3600) == 0) {