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

sims/CubeSphere

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/CubeSphere
Read OK:
File size: 0253 bytes
Load address: 0000
Exec address: 0000
File contents
FEMS2
/* cube is dropped on sphere, bounces and falls off */

rendering {
 type dots
 resolution 320,256
 view -41,24          /* x-y rotation, elevation */
 background back
}
frame_aim 640
gravity 0,0,-500
time_div 1

solid {  
 create {
  type cube
  points 8
  size 4in
 }
 nearbonds { spring_const 30: range 2.3 }
 solid_damp 1
 air_damp 2
 rotate 0,0,-23.4
 translate 0.1in,0.0in,5in
}

background {
 create {
  type sphere
  points 16
  size 4.4in
 }
 translate 0in,0in,-2in
}

background {
 create {
  type sheet
  points 10
  size 20in
 }
 translate 0,0,-0.1in 
 translate 0in,0in,-2in
}
00000000  46 45 4d 53 32 0a 2f 2a  20 63 75 62 65 20 69 73  |FEMS2./* cube is|
00000010  20 64 72 6f 70 70 65 64  20 6f 6e 20 73 70 68 65  | dropped on sphe|
00000020  72 65 2c 20 62 6f 75 6e  63 65 73 20 61 6e 64 20  |re, bounces and |
00000030  66 61 6c 6c 73 20 6f 66  66 20 2a 2f 0a 0a 72 65  |falls off */..re|
00000040  6e 64 65 72 69 6e 67 20  7b 0a 20 74 79 70 65 20  |ndering {. type |
00000050  64 6f 74 73 0a 20 72 65  73 6f 6c 75 74 69 6f 6e  |dots. resolution|
00000060  20 33 32 30 2c 32 35 36  0a 20 76 69 65 77 20 2d  | 320,256. view -|
00000070  34 31 2c 32 34 20 20 20  20 20 20 20 20 20 20 2f  |41,24          /|
00000080  2a 20 78 2d 79 20 72 6f  74 61 74 69 6f 6e 2c 20  |* x-y rotation, |
00000090  65 6c 65 76 61 74 69 6f  6e 20 2a 2f 0a 20 62 61  |elevation */. ba|
000000a0  63 6b 67 72 6f 75 6e 64  20 62 61 63 6b 0a 7d 0a  |ckground back.}.|
000000b0  66 72 61 6d 65 5f 61 69  6d 20 36 34 30 0a 67 72  |frame_aim 640.gr|
000000c0  61 76 69 74 79 20 30 2c  30 2c 2d 35 30 30 0a 74  |avity 0,0,-500.t|
000000d0  69 6d 65 5f 64 69 76 20  31 0a 0a 73 6f 6c 69 64  |ime_div 1..solid|
000000e0  20 7b 20 20 0a 20 63 72  65 61 74 65 20 7b 0a 20  | {  . create {. |
000000f0  20 74 79 70 65 20 63 75  62 65 0a 20 20 70 6f 69  | type cube.  poi|
00000100  6e 74 73 20 38 0a 20 20  73 69 7a 65 20 34 69 6e  |nts 8.  size 4in|
00000110  0a 20 7d 0a 20 6e 65 61  72 62 6f 6e 64 73 20 7b  |. }. nearbonds {|
00000120  20 73 70 72 69 6e 67 5f  63 6f 6e 73 74 20 33 30  | spring_const 30|
00000130  3a 20 72 61 6e 67 65 20  32 2e 33 20 7d 0a 20 73  |: range 2.3 }. s|
00000140  6f 6c 69 64 5f 64 61 6d  70 20 31 0a 20 61 69 72  |olid_damp 1. air|
00000150  5f 64 61 6d 70 20 32 0a  20 72 6f 74 61 74 65 20  |_damp 2. rotate |
00000160  30 2c 30 2c 2d 32 33 2e  34 0a 20 74 72 61 6e 73  |0,0,-23.4. trans|
00000170  6c 61 74 65 20 30 2e 31  69 6e 2c 30 2e 30 69 6e  |late 0.1in,0.0in|
00000180  2c 35 69 6e 0a 7d 0a 0a  62 61 63 6b 67 72 6f 75  |,5in.}..backgrou|
00000190  6e 64 20 7b 0a 20 63 72  65 61 74 65 20 7b 0a 20  |nd {. create {. |
000001a0  20 74 79 70 65 20 73 70  68 65 72 65 0a 20 20 70  | type sphere.  p|
000001b0  6f 69 6e 74 73 20 31 36  0a 20 20 73 69 7a 65 20  |oints 16.  size |
000001c0  34 2e 34 69 6e 0a 20 7d  0a 20 74 72 61 6e 73 6c  |4.4in. }. transl|
000001d0  61 74 65 20 30 69 6e 2c  30 69 6e 2c 2d 32 69 6e  |ate 0in,0in,-2in|
000001e0  0a 7d 0a 0a 62 61 63 6b  67 72 6f 75 6e 64 20 7b  |.}..background {|
000001f0  0a 20 63 72 65 61 74 65  20 7b 0a 20 20 74 79 70  |. create {.  typ|
00000200  65 20 73 68 65 65 74 0a  20 20 70 6f 69 6e 74 73  |e sheet.  points|
00000210  20 31 30 0a 20 20 73 69  7a 65 20 32 30 69 6e 0a  | 10.  size 20in.|
00000220  20 7d 0a 20 74 72 61 6e  73 6c 61 74 65 20 30 2c  | }. translate 0,|
00000230  30 2c 2d 30 2e 31 69 6e  20 0a 20 74 72 61 6e 73  |0,-0.1in . trans|
00000240  6c 61 74 65 20 30 69 6e  2c 30 69 6e 2c 2d 32 69  |late 0in,0in,-2i|
00000250  6e 0a 7d                                          |n.}|
00000253