summaryrefslogtreecommitdiff
path: root/src/graphyx/tests/Net.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/tests/Net.scala
parent034bc5930ea6f01745f64a6070711d899d2c27ae (diff)
downloadsims-9d20024aa35cd7f923ebfc1ed9a2ffbf2731da70.tar.gz
sims-9d20024aa35cd7f923ebfc1ed9a2ffbf2731da70.tar.bz2
sims-9d20024aa35cd7f923ebfc1ed9a2ffbf2731da70.zip
Initial import.
Diffstat (limited to 'src/graphyx/tests/Net.scala')
-rw-r--r--src/graphyx/tests/Net.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/graphyx/tests/Net.scala b/src/graphyx/tests/Net.scala
new file mode 100644
index 0000000..c340a80
--- /dev/null
+++ b/src/graphyx/tests/Net.scala
@@ -0,0 +1,22 @@
+/*
+ * Graphyx
+ * copyright (c) 2009 Jakob Odersky
+ * made available under the MIT License
+*/
+
+package graphyx.tests
+
+import sims._
+import sims.geometry._
+import sims.dynamics._
+
+object Net extends Test{
+ val title = "Net"
+ val world = new World
+
+ def init = {
+ val n = new prefabs.Net(10, 10, Vector2D(4,4))
+ n.bodies(9).fixed = true
+ world += n
+ }
+}