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 e94d3daeda

View File

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