600.0
800
600
800.0
0.015
1
filename
gravity pit1$0.mml
date
1235599650133
url
C:\Documents and Settings\Cynthia D'Angelo\Application Data\Molecular Workbench\cache\gravity pit1\gravity pit1$0.mml
size
21556
codebase
C:\Documents and Settings\Cynthia D'Angelo\My Documents\SURGE\MW models
set %count 0; // reset %count when the model resets
set %textbox[0].visible off;
define %ox %rectangle[0].x + %rectangle[0].width;
define %oy %rectangle[0].y + %rectangle[0].height;
define %i 0;
define %k 0;
define %count 0;
define %d 0.6*%atom[0].sigma;
define %dSq %d*%d;
define %x 0;
define %y 0;
define %w 0;
define %h 0;
define %x1 0;
define %y1 0;
define %x2 0;
define %y2 0;
define %x3 0;
define %y3 0;
define %distSq1;
define %distSq2;
define %distSq3;
define %px 0;
define %py 0;
define %flag 0;
define %oldFlag1 array(%number_of_rectangles);
define %oldFlag2 array(%number_of_triangles);
100
goal message
define %dx0 %atom[0].rx + .6*%atom[0].sigma;
define %dy0 %atom[0].ry + .6*%atom[0].sigma;
define %dx3 %atom[0].rx - .6*%atom[0].sigma;
define %dy3 %atom[0].ry - .6*%atom[0].sigma;
if ((%dx0 > %rectangle[0].x and %dx0 < %ox and %dy0 > %rectangle[0].y and %dy0 < %oy) or (%dx3 > %rectangle[0].x and %dx3 < %ox and %dy3 > %rectangle[0].y and %dy3 < %oy));
set %textbox[0].visible on;
set %image[0].visible on;
stop;
endif;
200
pit of despair
define %pitcount %rectangle[4].particlecount;
if(%pitcount == 1);
set textbox[1].visible on;
stop;
endif;
0.8999999761581421
None
255
0
255
255
YellowFuzzy-smallest.gif
1
2
false
712.0
275.0
0
0
255
255
false
128
192
255
255
38.0
1
44.0
724.0
300.0
0
0
192
255
17.0
1
3
0
0
192
255
true
146.0
37.0
365.0
17.0
1
4
true
146.0
289.0
365.5
17.0
1
5
true
146.0
525.0
365.5
false
192
0
0
255
193.0
1
6
796.0
2.0
404.0
2
true
745
288
255
255
128
255
Arial
1
12
1
1
1
You hit the goal!
false
673.0
236.0
11
2
0
0
128
255
Arial Bold
1
14
0
255
0
255
1
7
You fell into the Pit of Despair! But do not despair, hit the reset button to try again.
false
65.0
449.0
3
1.0E-4
42.0
48.0
4
0.0
2