Woking (sort of)

This commit is contained in:
2022-04-12 21:10:48 +02:00
parent 5d129cd6f9
commit 4f8f9e0c37
3 changed files with 42 additions and 13 deletions

@ -62,7 +62,7 @@ public class Simulation {
}
bodies = mergedBodies;
*/
Octree octree = new Octree(new Vector(AU), SECTION_SIZE);
Octree octree = new Octree(new Vector(0, 0, 0), SECTION_SIZE);
for (Body body : bodies) {
octree.add(body);
}
@ -73,6 +73,7 @@ public class Simulation {
for (Body body : bodies) {
body.draw(cd);
}
octree.draw(cd);
cd.show();
}
}