diff options
Diffstat (limited to 'src/graphyx/tests')
-rw-r--r-- | src/graphyx/tests/Friction2.scala | 2 | ||||
-rw-r--r-- | src/graphyx/tests/General1.scala | 2 | ||||
-rw-r--r-- | src/graphyx/tests/Spring.scala | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/graphyx/tests/Friction2.scala b/src/graphyx/tests/Friction2.scala index 6eb445b..f6731e2 100644 --- a/src/graphyx/tests/Friction2.scala +++ b/src/graphyx/tests/Friction2.scala @@ -26,7 +26,7 @@ object Friction2 extends Test{ ground.rotation = -0.2 world += ground - val b: Body = (new Circle(0.1,10)) ^ (new Circle(0.1,10) {pos = Vector2D(0.2,0)}) ^ (new Circle(0.1,10) {pos = Vector2D(0.4,0)}) + val b: Body = (new Circle(0.1,10)) ~ (new Circle(0.1,10) {pos = Vector2D(0.2,0)}) ~ (new Circle(0.1,10) {pos = Vector2D(0.4,0)}) b.pos = Vector2D(0.1,0.1) world += b } diff --git a/src/graphyx/tests/General1.scala b/src/graphyx/tests/General1.scala index 1a71c24..7d8703b 100644 --- a/src/graphyx/tests/General1.scala +++ b/src/graphyx/tests/General1.scala @@ -103,7 +103,7 @@ object General1 extends Test{ ground.fixed = true world += ground - world += (new Circle(0.1,1) {pos = Vector2D(2,2)}) ^ (new Circle(0.1,1) {pos = Vector2D(2,2.2)}) + world += (new Circle(0.1,1) {pos = Vector2D(2,2)}) ~ (new Circle(0.1,1) {pos = Vector2D(2,2.2)}) } override def fireEvent() = blastBomb diff --git a/src/graphyx/tests/Spring.scala b/src/graphyx/tests/Spring.scala index 4eec8de..439259f 100644 --- a/src/graphyx/tests/Spring.scala +++ b/src/graphyx/tests/Spring.scala @@ -7,8 +7,8 @@ import java.io._ object Spring extends Test{ val title = "Spring" - val fout = new java.io.FileOutputStream("out.csv") - val sout = new java.io.PrintStream(fout) + //val fout = new java.io.FileOutputStream("out.csv") + //val sout = new java.io.PrintStream(fout) val world = new World { override def postStep = { //for (b <- bodies; if (b.monitor)) sout.println(monitors(0)._2(b)) |