summaryrefslogtreecommitdiff
path: root/test2.dat
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2010-08-18 14:38:34 +0000
committerIan C <ianc@noddybox.co.uk>2010-08-18 14:38:34 +0000
commit19bbd5822593c7198dd54eb0f5d38fa1ed8d8fb7 (patch)
tree97f7f8849c3a8282ba571a64ff2a655cdf5d41aa /test2.dat
parent0d2f672482fee91a9642a7cb6eb01fcdded79159 (diff)
Reformatted code and altered the attraction rule to something a bit more
correct. Also added two tests to prove it works.
Diffstat (limited to 'test2.dat')
-rw-r--r--test2.dat53
1 files changed, 53 insertions, 0 deletions
diff --git a/test2.dat b/test2.dat
new file mode 100644
index 0000000..48b7c27
--- /dev/null
+++ b/test2.dat
@@ -0,0 +1,53 @@
+# For this test the two objects should orbit around the centre with the same
+# acceleration, independent of their mass.
+#
+camera 0.0, 0.0, -1000.0, 0.0;
+
+enable solid;
+enable lighting;
+disable texture;
+
+collide none;
+
+const 0.001;
+
+scale 10;
+
+
+body centre,
+ 100,
+ 0,0,0,
+ 0,0,0,
+ 1,1,1,
+ 0;
+
+light centre,1,1,1;
+
+
+plane xy;
+
+radial mass1,
+ 1,
+ centre,
+ 300,
+ 90,
+ 1,
+ 1,0,0,
+ 0;
+
+radial mass2,
+ 2,
+ centre,
+ 300,
+ 270,
+ 1,
+ 0,1,0,
+ 0;
+
+look centre;
+look mass1;
+look mass2;
+
+look_at centre;
+
+particles 0.0001,0.0,1.0;