summaryrefslogtreecommitdiff
path: root/src/graphyx/tests/Net.scala
diff options
context:
space:
mode:
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
+ }
+}