Home » Archimedes archive » Acorn User » AU 1994-02.adf » !FEMS_App_FEMS_App » sims/repel/BallBlocks

sims/repel/BallBlocks

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-02.adf » !FEMS_App_FEMS_App
Filename: sims/repel/BallBlocks
Read OK:
File size: 0367 bytes
Load address: 0000
Exec address: 0000
File contents
FEMS2

rendering {
 type lines
 resolution 320,256
 view 30,24          /* x-y rotation, elevation */
 background back
}
frame_aim 353
gravity 0,0,-600
time_div 1

solid {
 create {
  type solid_sphere
  points 10,99
  size 2in
 }
 nearbonds { spring_const 40: range 2.25 }
 repel 71
 solid_damp 3
 translate 7in,0,7in
 velocity -4ips,0,0
}

solid {
 create {
  type compound
  part {
   type cuboid
   points 6,6,3
   size 8in,8in,4in
   offset 2in,-4in,0in
  }
  part {
   type cuboid
   points 6,6,3
   size 8in,8in,4in
   offset -6in,-4in,-4in
  }
 }
 nearbonds { spring_const 30: range 2.25 }
 repel 71
 solid_damp 4
  /* fix position of block bases */
 fix_vel 1.9in,-4.1in,-.1in,8.2in,8.2in,0.2in, 0ips,0ips,0ips
 fix_vel -6.1in,-4.1in,-4.1in,8.2in,8.2in,0.2in, 0ips,0ips,0ips
}

background {
 create {
  type sheet
  points 12
  size 24in
 }
 translate 0,0,-4in
}
00000000  46 45 4d 53 32 0a 0a 72  65 6e 64 65 72 69 6e 67  |FEMS2..rendering|
00000010  20 7b 0a 20 74 79 70 65  20 6c 69 6e 65 73 0a 20  | {. type lines. |
00000020  72 65 73 6f 6c 75 74 69  6f 6e 20 33 32 30 2c 32  |resolution 320,2|
00000030  35 36 0a 20 76 69 65 77  20 33 30 2c 32 34 20 20  |56. view 30,24  |
00000040  20 20 20 20 20 20 20 20  2f 2a 20 78 2d 79 20 72  |        /* x-y r|
00000050  6f 74 61 74 69 6f 6e 2c  20 65 6c 65 76 61 74 69  |otation, elevati|
00000060  6f 6e 20 2a 2f 0a 20 62  61 63 6b 67 72 6f 75 6e  |on */. backgroun|
00000070  64 20 62 61 63 6b 0a 7d  0a 66 72 61 6d 65 5f 61  |d back.}.frame_a|
00000080  69 6d 20 33 35 33 0a 67  72 61 76 69 74 79 20 30  |im 353.gravity 0|
00000090  2c 30 2c 2d 36 30 30 0a  74 69 6d 65 5f 64 69 76  |,0,-600.time_div|
000000a0  20 31 0a 0a 73 6f 6c 69  64 20 7b 0a 20 63 72 65  | 1..solid {. cre|
000000b0  61 74 65 20 7b 0a 20 20  74 79 70 65 20 73 6f 6c  |ate {.  type sol|
000000c0  69 64 5f 73 70 68 65 72  65 0a 20 20 70 6f 69 6e  |id_sphere.  poin|
000000d0  74 73 20 31 30 2c 39 39  0a 20 20 73 69 7a 65 20  |ts 10,99.  size |
000000e0  32 69 6e 0a 20 7d 0a 20  6e 65 61 72 62 6f 6e 64  |2in. }. nearbond|
000000f0  73 20 7b 20 73 70 72 69  6e 67 5f 63 6f 6e 73 74  |s { spring_const|
00000100  20 34 30 3a 20 72 61 6e  67 65 20 32 2e 32 35 20  | 40: range 2.25 |
00000110  7d 0a 20 72 65 70 65 6c  20 37 31 0a 20 73 6f 6c  |}. repel 71. sol|
00000120  69 64 5f 64 61 6d 70 20  33 0a 20 74 72 61 6e 73  |id_damp 3. trans|
00000130  6c 61 74 65 20 37 69 6e  2c 30 2c 37 69 6e 0a 20  |late 7in,0,7in. |
00000140  76 65 6c 6f 63 69 74 79  20 2d 34 69 70 73 2c 30  |velocity -4ips,0|
00000150  2c 30 0a 7d 0a 0a 73 6f  6c 69 64 20 7b 0a 20 63  |,0.}..solid {. c|
00000160  72 65 61 74 65 20 7b 0a  20 20 74 79 70 65 20 63  |reate {.  type c|
00000170  6f 6d 70 6f 75 6e 64 0a  20 20 70 61 72 74 20 7b  |ompound.  part {|
00000180  0a 20 20 20 74 79 70 65  20 63 75 62 6f 69 64 0a  |.   type cuboid.|
00000190  20 20 20 70 6f 69 6e 74  73 20 36 2c 36 2c 33 0a  |   points 6,6,3.|
000001a0  20 20 20 73 69 7a 65 20  38 69 6e 2c 38 69 6e 2c  |   size 8in,8in,|
000001b0  34 69 6e 0a 20 20 20 6f  66 66 73 65 74 20 32 69  |4in.   offset 2i|
000001c0  6e 2c 2d 34 69 6e 2c 30  69 6e 0a 20 20 7d 0a 20  |n,-4in,0in.  }. |
000001d0  20 70 61 72 74 20 7b 0a  20 20 20 74 79 70 65 20  | part {.   type |
000001e0  63 75 62 6f 69 64 0a 20  20 20 70 6f 69 6e 74 73  |cuboid.   points|
000001f0  20 36 2c 36 2c 33 0a 20  20 20 73 69 7a 65 20 38  | 6,6,3.   size 8|
00000200  69 6e 2c 38 69 6e 2c 34  69 6e 0a 20 20 20 6f 66  |in,8in,4in.   of|
00000210  66 73 65 74 20 2d 36 69  6e 2c 2d 34 69 6e 2c 2d  |fset -6in,-4in,-|
00000220  34 69 6e 0a 20 20 7d 0a  20 7d 0a 20 6e 65 61 72  |4in.  }. }. near|
00000230  62 6f 6e 64 73 20 7b 20  73 70 72 69 6e 67 5f 63  |bonds { spring_c|
00000240  6f 6e 73 74 20 33 30 3a  20 72 61 6e 67 65 20 32  |onst 30: range 2|
00000250  2e 32 35 20 7d 0a 20 72  65 70 65 6c 20 37 31 0a  |.25 }. repel 71.|
00000260  20 73 6f 6c 69 64 5f 64  61 6d 70 20 34 0a 20 20  | solid_damp 4.  |
00000270  2f 2a 20 66 69 78 20 70  6f 73 69 74 69 6f 6e 20  |/* fix position |
00000280  6f 66 20 62 6c 6f 63 6b  20 62 61 73 65 73 20 2a  |of block bases *|
00000290  2f 0a 20 66 69 78 5f 76  65 6c 20 31 2e 39 69 6e  |/. fix_vel 1.9in|
000002a0  2c 2d 34 2e 31 69 6e 2c  2d 2e 31 69 6e 2c 38 2e  |,-4.1in,-.1in,8.|
000002b0  32 69 6e 2c 38 2e 32 69  6e 2c 30 2e 32 69 6e 2c  |2in,8.2in,0.2in,|
000002c0  20 30 69 70 73 2c 30 69  70 73 2c 30 69 70 73 0a  | 0ips,0ips,0ips.|
000002d0  20 66 69 78 5f 76 65 6c  20 2d 36 2e 31 69 6e 2c  | fix_vel -6.1in,|
000002e0  2d 34 2e 31 69 6e 2c 2d  34 2e 31 69 6e 2c 38 2e  |-4.1in,-4.1in,8.|
000002f0  32 69 6e 2c 38 2e 32 69  6e 2c 30 2e 32 69 6e 2c  |2in,8.2in,0.2in,|
00000300  20 30 69 70 73 2c 30 69  70 73 2c 30 69 70 73 0a  | 0ips,0ips,0ips.|
00000310  7d 0a 0a 62 61 63 6b 67  72 6f 75 6e 64 20 7b 0a  |}..background {.|
00000320  20 63 72 65 61 74 65 20  7b 0a 20 20 74 79 70 65  | create {.  type|
00000330  20 73 68 65 65 74 0a 20  20 70 6f 69 6e 74 73 20  | sheet.  points |
00000340  31 32 0a 20 20 73 69 7a  65 20 32 34 69 6e 0a 20  |12.  size 24in. |
00000350  7d 0a 20 74 72 61 6e 73  6c 61 74 65 20 30 2c 30  |}. translate 0,0|
00000360  2c 2d 34 69 6e 0a 7d                              |,-4in.}|
00000367