diff options
Diffstat (limited to 'src/graphyx/graphics/GraphicalWorld.scala')
-rw-r--r-- | src/graphyx/graphics/GraphicalWorld.scala | 19 |
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 +} |