summaryrefslogtreecommitdiff
path: root/src/graphyx/tests/Friction2.scala
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2009-12-13 16:06:50 +0000
committerJakob Odersky <jodersky@gmail.com>2009-12-13 16:06:50 +0000
commit66d338aec5d632927fa561a68310c8931938e9e0 (patch)
tree1e200fd94bb903772b007690da4e5d13fc46fb5b /src/graphyx/tests/Friction2.scala
parentbe2ee4dea92c5a4fc2329959d6e7272c50b221a6 (diff)
downloadsims-66d338aec5d632927fa561a68310c8931938e9e0.tar.gz
sims-66d338aec5d632927fa561a68310c8931938e9e0.tar.bz2
sims-66d338aec5d632927fa561a68310c8931938e9e0.zip
Ported to scala 2.8.
Diffstat (limited to 'src/graphyx/tests/Friction2.scala')
-rw-r--r--src/graphyx/tests/Friction2.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphyx/tests/Friction2.scala b/src/graphyx/tests/Friction2.scala
index f6731e2..9d03bd9 100644
--- a/src/graphyx/tests/Friction2.scala
+++ b/src/graphyx/tests/Friction2.scala
@@ -20,10 +20,10 @@ object Friction2 extends Test{
friction = (i * 1.0 / 10)
restitution = 0
})
- val ground = new Body(shapes: _*) //Rectangle(100, 0.1, 1).asBody
+ val ground = new Body(shapes: _*)
ground.pos = Vector2D(0,0)
ground.fixed = true
- ground.rotation = -0.2
+ ground.rotation = -Math.Pi / 5
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)})