summaryrefslogtreecommitdiff
path: root/src/graphyx/graphics/GraphicalWorld.scala
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2009-11-05 21:02:40 +0000
committerJakob Odersky <jodersky@gmail.com>2009-11-05 21:02:40 +0000
commit9d20024aa35cd7f923ebfc1ed9a2ffbf2731da70 (patch)
tree4e97fadc391b310ee1cc7156fda590dff414b2c3 /src/graphyx/graphics/GraphicalWorld.scala
parent034bc5930ea6f01745f64a6070711d899d2c27ae (diff)
downloadsims-9d20024aa35cd7f923ebfc1ed9a2ffbf2731da70.tar.gz
sims-9d20024aa35cd7f923ebfc1ed9a2ffbf2731da70.tar.bz2
sims-9d20024aa35cd7f923ebfc1ed9a2ffbf2731da70.zip
Initial import.
Diffstat (limited to 'src/graphyx/graphics/GraphicalWorld.scala')
-rw-r--r--src/graphyx/graphics/GraphicalWorld.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/graphyx/graphics/GraphicalWorld.scala b/src/graphyx/graphics/GraphicalWorld.scala
new file mode 100644
index 0000000..2837d69
--- /dev/null
+++ b/src/graphyx/graphics/GraphicalWorld.scala
@@ -0,0 +1,19 @@
+/*
+ * Graphyx
+ * copyright (c) 2009 Jakob Odersky
+ * made available under the MIT License
+*/
+
+package graphyx.graphics
+
+import sims.dynamics._
+case class GraphicalWorld(real: World){
+ val time = real.time
+ val timeStep = real.timeStep
+ val iterations = real.iterations
+ val overCWarning = real.overCWarning
+ val gravity = real.gravity
+ val monitorResults = for (b <- real.bodies; m <- real.monitors; if (b.monitor)) yield "b" + b.uid.toString + " " + m._1 + ": " + m._2(b)
+ val enableCollisionDetection = real.enableCollisionDetection
+ val enablePositionCorrection = real.enablePositionCorrection
+}