package de.kleppmann.maniation;

import de.kleppmann.maniation.dynamics.Simulation;

public class TestDynamics {

    public TestDynamics() {
        super();
        Simulation sim = new Simulation();
        //MultiPendulum.setup(sim, 2);
        new NewtonsCradle(sim);
        sim.run(1.0);
    }

    public static void main(String[] args) {
        new TestDynamics();
    }
}

@@ -69,94 +69,503 @@
 ics.
-Simulation;%0A%0Apublic class TestDynamics %7B%0A%0A    public TestDynamics() %7B%0A        super();
+DynamicScene;%0Aimport de.kleppmann.maniation.dynamics.Simulation;%0Aimport de.kleppmann.maniation.scene.Scene;%0Aimport de.kleppmann.maniation.scene.XMLParser;%0A%0Apublic class TestDynamics %7B%0A%0A    public TestDynamics() %7B%0A        XMLParser sceneParser = new XMLParser(new org.apache.xerces.jaxp.SAXParserFactoryImpl());%0A        Scene scene;%0A        try %7B%0A            scene = sceneParser.parse(%22../boxes.xml%22);%0A        %7D catch (Exception e) %7B%0A            e.printStackTrace();%0A            return;%0A        %7D
 %0A   
@@ -647,24 +647,26 @@
 2);%0A        
+//
 new NewtonsC
@@ -677,16 +677,54 @@
 e(sim);%0A
+        new DynamicScene(scene, sim);%0A
         
@@ -735,9 +735,9 @@
 run(
-1
+5
 .0);

Use DynamicScene, and load `boxes' example from XML file.