Woking (sort of)
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user