From 19bbd5822593c7198dd54eb0f5d38fa1ed8d8fb7 Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 18 Aug 2010 14:38:34 +0000 Subject: Reformatted code and altered the attraction rule to something a bit more correct. Also added two tests to prove it works. --- test1.dat | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 test1.dat (limited to 'test1.dat') diff --git a/test1.dat b/test1.dat new file mode 100644 index 0000000..d98a851 --- /dev/null +++ b/test1.dat @@ -0,0 +1,51 @@ +# For this test the two objects should fall into 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, + 500, + 90, + 0, + 1,0,0, + 0; + +radial mass2, + 2, + centre, + 500, + 270, + 0, + 0,1,0, + 0; + +look centre; +look mass1; +look mass2; + +look_at centre; -- cgit v1.2.3