Home » Archimedes archive » Acorn User » AU 1994-01.adf » !FEMS_App_FEMS_App » sims/Cubes

sims/Cubes

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1994-01.adf » !FEMS_App_FEMS_App
Filename: sims/Cubes
Read OK:
File size: 038C bytes
Load address: 0000
Exec address: 0000
File contents
FEMS2
/* 3 cubes falling down stairs */

rendering {
 type lines
 resolution 320,256
 view 140,24          /* x-y rotation, elevation */
 background back   /* for speed, assume background is always behind solid */
}
frame_aim 350
gravity 0,0,-600
time_div 1

solid {  
 create { type cube:points 3:size 2in }
 nearbonds { spring_const 30:range 2.25 }
 damping 2     
 rotate 0,0,-25
 translate -3in,4.6in,5.5in
}

solid {  
 create { type cube:points 3:size 2in }
 nearbonds { spring_const 30:range 2.25 }
 damping 2     
 translate 0,4.6in,5.5in
}

solid {  
 create { type cube:points 3:size 2in }
 nearbonds { spring_const 30:range 2.25 }
 damping 2     
 rotate 0,0,25
 translate 3in,4.6in,5.5in
}

background {
 create {
  type stairs
  points 7,11,2        /* points in width, no. of steps, pts in a step */
  size 14in,2in,2.33in  /* width, step height, step depth */
 }
 /* translate 0,-12.8,-10 */
}
00000000  46 45 4d 53 32 0a 2f 2a  20 33 20 63 75 62 65 73  |FEMS2./* 3 cubes|
00000010  20 66 61 6c 6c 69 6e 67  20 64 6f 77 6e 20 73 74  | falling down st|
00000020  61 69 72 73 20 2a 2f 0a  0a 72 65 6e 64 65 72 69  |airs */..renderi|
00000030  6e 67 20 7b 0a 20 74 79  70 65 20 6c 69 6e 65 73  |ng {. type lines|
00000040  0a 20 72 65 73 6f 6c 75  74 69 6f 6e 20 33 32 30  |. resolution 320|
00000050  2c 32 35 36 0a 20 76 69  65 77 20 31 34 30 2c 32  |,256. view 140,2|
00000060  34 20 20 20 20 20 20 20  20 20 20 2f 2a 20 78 2d  |4          /* x-|
00000070  79 20 72 6f 74 61 74 69  6f 6e 2c 20 65 6c 65 76  |y rotation, elev|
00000080  61 74 69 6f 6e 20 2a 2f  0a 20 62 61 63 6b 67 72  |ation */. backgr|
00000090  6f 75 6e 64 20 62 61 63  6b 20 20 20 2f 2a 20 66  |ound back   /* f|
000000a0  6f 72 20 73 70 65 65 64  2c 20 61 73 73 75 6d 65  |or speed, assume|
000000b0  20 62 61 63 6b 67 72 6f  75 6e 64 20 69 73 20 61  | background is a|
000000c0  6c 77 61 79 73 20 62 65  68 69 6e 64 20 73 6f 6c  |lways behind sol|
000000d0  69 64 20 2a 2f 0a 7d 0a  66 72 61 6d 65 5f 61 69  |id */.}.frame_ai|
000000e0  6d 20 33 35 30 0a 67 72  61 76 69 74 79 20 30 2c  |m 350.gravity 0,|
000000f0  30 2c 2d 36 30 30 0a 74  69 6d 65 5f 64 69 76 20  |0,-600.time_div |
00000100  31 0a 0a 73 6f 6c 69 64  20 7b 20 20 0a 20 63 72  |1..solid {  . cr|
00000110  65 61 74 65 20 7b 20 74  79 70 65 20 63 75 62 65  |eate { type cube|
00000120  3a 70 6f 69 6e 74 73 20  33 3a 73 69 7a 65 20 32  |:points 3:size 2|
00000130  69 6e 20 7d 0a 20 6e 65  61 72 62 6f 6e 64 73 20  |in }. nearbonds |
00000140  7b 20 73 70 72 69 6e 67  5f 63 6f 6e 73 74 20 33  |{ spring_const 3|
00000150  30 3a 72 61 6e 67 65 20  32 2e 32 35 20 7d 0a 20  |0:range 2.25 }. |
00000160  64 61 6d 70 69 6e 67 20  32 20 20 20 20 20 0a 20  |damping 2     . |
00000170  72 6f 74 61 74 65 20 30  2c 30 2c 2d 32 35 0a 20  |rotate 0,0,-25. |
00000180  74 72 61 6e 73 6c 61 74  65 20 2d 33 69 6e 2c 34  |translate -3in,4|
00000190  2e 36 69 6e 2c 35 2e 35  69 6e 0a 7d 0a 0a 73 6f  |.6in,5.5in.}..so|
000001a0  6c 69 64 20 7b 20 20 0a  20 63 72 65 61 74 65 20  |lid {  . create |
000001b0  7b 20 74 79 70 65 20 63  75 62 65 3a 70 6f 69 6e  |{ type cube:poin|
000001c0  74 73 20 33 3a 73 69 7a  65 20 32 69 6e 20 7d 0a  |ts 3:size 2in }.|
000001d0  20 6e 65 61 72 62 6f 6e  64 73 20 7b 20 73 70 72  | nearbonds { spr|
000001e0  69 6e 67 5f 63 6f 6e 73  74 20 33 30 3a 72 61 6e  |ing_const 30:ran|
000001f0  67 65 20 32 2e 32 35 20  7d 0a 20 64 61 6d 70 69  |ge 2.25 }. dampi|
00000200  6e 67 20 32 20 20 20 20  20 0a 20 74 72 61 6e 73  |ng 2     . trans|
00000210  6c 61 74 65 20 30 2c 34  2e 36 69 6e 2c 35 2e 35  |late 0,4.6in,5.5|
00000220  69 6e 0a 7d 0a 0a 73 6f  6c 69 64 20 7b 20 20 0a  |in.}..solid {  .|
00000230  20 63 72 65 61 74 65 20  7b 20 74 79 70 65 20 63  | create { type c|
00000240  75 62 65 3a 70 6f 69 6e  74 73 20 33 3a 73 69 7a  |ube:points 3:siz|
00000250  65 20 32 69 6e 20 7d 0a  20 6e 65 61 72 62 6f 6e  |e 2in }. nearbon|
00000260  64 73 20 7b 20 73 70 72  69 6e 67 5f 63 6f 6e 73  |ds { spring_cons|
00000270  74 20 33 30 3a 72 61 6e  67 65 20 32 2e 32 35 20  |t 30:range 2.25 |
00000280  7d 0a 20 64 61 6d 70 69  6e 67 20 32 20 20 20 20  |}. damping 2    |
00000290  20 0a 20 72 6f 74 61 74  65 20 30 2c 30 2c 32 35  | . rotate 0,0,25|
000002a0  0a 20 74 72 61 6e 73 6c  61 74 65 20 33 69 6e 2c  |. translate 3in,|
000002b0  34 2e 36 69 6e 2c 35 2e  35 69 6e 0a 7d 0a 0a 62  |4.6in,5.5in.}..b|
000002c0  61 63 6b 67 72 6f 75 6e  64 20 7b 0a 20 63 72 65  |ackground {. cre|
000002d0  61 74 65 20 7b 0a 20 20  74 79 70 65 20 73 74 61  |ate {.  type sta|
000002e0  69 72 73 0a 20 20 70 6f  69 6e 74 73 20 37 2c 31  |irs.  points 7,1|
000002f0  31 2c 32 20 20 20 20 20  20 20 20 2f 2a 20 70 6f  |1,2        /* po|
00000300  69 6e 74 73 20 69 6e 20  77 69 64 74 68 2c 20 6e  |ints in width, n|
00000310  6f 2e 20 6f 66 20 73 74  65 70 73 2c 20 70 74 73  |o. of steps, pts|
00000320  20 69 6e 20 61 20 73 74  65 70 20 2a 2f 0a 20 20  | in a step */.  |
00000330  73 69 7a 65 20 31 34 69  6e 2c 32 69 6e 2c 32 2e  |size 14in,2in,2.|
00000340  33 33 69 6e 20 20 2f 2a  20 77 69 64 74 68 2c 20  |33in  /* width, |
00000350  73 74 65 70 20 68 65 69  67 68 74 2c 20 73 74 65  |step height, ste|
00000360  70 20 64 65 70 74 68 20  2a 2f 0a 20 7d 0a 20 2f  |p depth */. }. /|
00000370  2a 20 74 72 61 6e 73 6c  61 74 65 20 30 2c 2d 31  |* translate 0,-1|
00000380  32 2e 38 2c 2d 31 30 20  2a 2f 0a 7d              |2.8,-10 */.}|
0000038c