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

sims/ChairStair

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/ChairStair
Read OK:
File size: 04A6 bytes
Load address: 0000
Exec address: 0000
File contents
FEMS2
/* chair falling down stairs */
/* WARNING: takes a long time to produce */

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

solid {  
 create {
  type compound                         
  /* front legs */
  part { type cuboid:points 3,3,11:size 1in,1in,5in }
  part { type cuboid:points 3,3,11:size 1in,1in,5in:offset 4in,0,0 }
  /* back legs */
  part { type cuboid:points 3,3,23:size 1in,1in,11in:offset 0,4in,0 }
  part { type cuboid:points 3,3,23:size 1in,1in,11in:offset 4in,4in,0 } 
  /* seat */
  part { type cuboid:points 11,9,3:size 5in,4in,1in:offset 0,0,5in }
  /* back */
  part { type cuboid:points 7,2,5:size 3in,.5in,2in:offset 1in,4.5in,9in }
 }  
 translate -2.5in,-2.5in,0in 
 scale .7,.7,.7
 nearbonds { spring_const 25: range 2.25 }
 damping 3
 rotate 0,0,40
 translate 0,4.5in,4.5in
}

background {
 create {
  type stairs
  points 13,11,3        /* points in width, no. of steps, pts in a step */
  size 14in,2in,2.33in  /* width, step height, step depth */
 }
 translate 0,-11.65in,-10in
}
00000000  46 45 4d 53 32 0a 2f 2a  20 63 68 61 69 72 20 66  |FEMS2./* chair f|
00000010  61 6c 6c 69 6e 67 20 64  6f 77 6e 20 73 74 61 69  |alling down stai|
00000020  72 73 20 2a 2f 0a 2f 2a  20 57 41 52 4e 49 4e 47  |rs */./* WARNING|
00000030  3a 20 74 61 6b 65 73 20  61 20 6c 6f 6e 67 20 74  |: takes a long t|
00000040  69 6d 65 20 74 6f 20 70  72 6f 64 75 63 65 20 2a  |ime to produce *|
00000050  2f 0a 0a 72 65 6e 64 65  72 69 6e 67 20 7b 0a 20  |/..rendering {. |
00000060  74 79 70 65 20 64 6f 74  73 0a 20 72 65 73 6f 6c  |type dots. resol|
00000070  75 74 69 6f 6e 20 33 32  30 2c 32 35 36 0a 20 76  |ution 320,256. v|
00000080  69 65 77 20 31 34 30 2c  32 34 20 20 20 20 20 20  |iew 140,24      |
00000090  20 20 20 20 2f 2a 20 78  2d 79 20 72 6f 74 61 74  |    /* x-y rotat|
000000a0  69 6f 6e 2c 20 65 6c 65  76 61 74 69 6f 6e 20 32  |ion, elevation 2|
000000b0  34 20 2a 2f 0a 20 62 61  63 6b 67 72 6f 75 6e 64  |4 */. background|
000000c0  20 62 61 63 6b 20 20 20  2f 2a 20 66 6f 72 20 73  | back   /* for s|
000000d0  70 65 65 64 2c 20 61 73  73 75 6d 65 20 62 61 63  |peed, assume bac|
000000e0  6b 67 72 6f 75 6e 64 20  69 73 20 61 6c 77 61 79  |kground is alway|
000000f0  73 20 62 65 68 69 6e 64  20 73 6f 6c 69 64 20 2a  |s behind solid *|
00000100  2f 0a 7d 0a 66 72 61 6d  65 5f 61 69 6d 20 33 35  |/.}.frame_aim 35|
00000110  30 0a 67 72 61 76 69 74  79 20 30 2c 30 2c 2d 36  |0.gravity 0,0,-6|
00000120  30 30 0a 74 69 6d 65 5f  64 69 76 20 34 0a 0a 73  |00.time_div 4..s|
00000130  6f 6c 69 64 20 7b 20 20  0a 20 63 72 65 61 74 65  |olid {  . create|
00000140  20 7b 0a 20 20 74 79 70  65 20 63 6f 6d 70 6f 75  | {.  type compou|
00000150  6e 64 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |nd              |
00000160  20 20 20 20 20 20 20 20  20 20 20 0a 20 20 2f 2a  |           .  /*|
00000170  20 66 72 6f 6e 74 20 6c  65 67 73 20 2a 2f 0a 20  | front legs */. |
00000180  20 70 61 72 74 20 7b 20  74 79 70 65 20 63 75 62  | part { type cub|
00000190  6f 69 64 3a 70 6f 69 6e  74 73 20 33 2c 33 2c 31  |oid:points 3,3,1|
000001a0  31 3a 73 69 7a 65 20 31  69 6e 2c 31 69 6e 2c 35  |1:size 1in,1in,5|
000001b0  69 6e 20 7d 0a 20 20 70  61 72 74 20 7b 20 74 79  |in }.  part { ty|
000001c0  70 65 20 63 75 62 6f 69  64 3a 70 6f 69 6e 74 73  |pe cuboid:points|
000001d0  20 33 2c 33 2c 31 31 3a  73 69 7a 65 20 31 69 6e  | 3,3,11:size 1in|
000001e0  2c 31 69 6e 2c 35 69 6e  3a 6f 66 66 73 65 74 20  |,1in,5in:offset |
000001f0  34 69 6e 2c 30 2c 30 20  7d 0a 20 20 2f 2a 20 62  |4in,0,0 }.  /* b|
00000200  61 63 6b 20 6c 65 67 73  20 2a 2f 0a 20 20 70 61  |ack legs */.  pa|
00000210  72 74 20 7b 20 74 79 70  65 20 63 75 62 6f 69 64  |rt { type cuboid|
00000220  3a 70 6f 69 6e 74 73 20  33 2c 33 2c 32 33 3a 73  |:points 3,3,23:s|
00000230  69 7a 65 20 31 69 6e 2c  31 69 6e 2c 31 31 69 6e  |ize 1in,1in,11in|
00000240  3a 6f 66 66 73 65 74 20  30 2c 34 69 6e 2c 30 20  |:offset 0,4in,0 |
00000250  7d 0a 20 20 70 61 72 74  20 7b 20 74 79 70 65 20  |}.  part { type |
00000260  63 75 62 6f 69 64 3a 70  6f 69 6e 74 73 20 33 2c  |cuboid:points 3,|
00000270  33 2c 32 33 3a 73 69 7a  65 20 31 69 6e 2c 31 69  |3,23:size 1in,1i|
00000280  6e 2c 31 31 69 6e 3a 6f  66 66 73 65 74 20 34 69  |n,11in:offset 4i|
00000290  6e 2c 34 69 6e 2c 30 20  7d 20 0a 20 20 2f 2a 20  |n,4in,0 } .  /* |
000002a0  73 65 61 74 20 2a 2f 0a  20 20 70 61 72 74 20 7b  |seat */.  part {|
000002b0  20 74 79 70 65 20 63 75  62 6f 69 64 3a 70 6f 69  | type cuboid:poi|
000002c0  6e 74 73 20 31 31 2c 39  2c 33 3a 73 69 7a 65 20  |nts 11,9,3:size |
000002d0  35 69 6e 2c 34 69 6e 2c  31 69 6e 3a 6f 66 66 73  |5in,4in,1in:offs|
000002e0  65 74 20 30 2c 30 2c 35  69 6e 20 7d 0a 20 20 2f  |et 0,0,5in }.  /|
000002f0  2a 20 62 61 63 6b 20 2a  2f 0a 20 20 70 61 72 74  |* back */.  part|
00000300  20 7b 20 74 79 70 65 20  63 75 62 6f 69 64 3a 70  | { type cuboid:p|
00000310  6f 69 6e 74 73 20 37 2c  32 2c 35 3a 73 69 7a 65  |oints 7,2,5:size|
00000320  20 33 69 6e 2c 2e 35 69  6e 2c 32 69 6e 3a 6f 66  | 3in,.5in,2in:of|
00000330  66 73 65 74 20 31 69 6e  2c 34 2e 35 69 6e 2c 39  |fset 1in,4.5in,9|
00000340  69 6e 20 7d 0a 20 7d 20  20 0a 20 74 72 61 6e 73  |in }. }  . trans|
00000350  6c 61 74 65 20 2d 32 2e  35 69 6e 2c 2d 32 2e 35  |late -2.5in,-2.5|
00000360  69 6e 2c 30 69 6e 20 0a  20 73 63 61 6c 65 20 2e  |in,0in . scale .|
00000370  37 2c 2e 37 2c 2e 37 0a  20 6e 65 61 72 62 6f 6e  |7,.7,.7. nearbon|
00000380  64 73 20 7b 20 73 70 72  69 6e 67 5f 63 6f 6e 73  |ds { spring_cons|
00000390  74 20 32 35 3a 20 72 61  6e 67 65 20 32 2e 32 35  |t 25: range 2.25|
000003a0  20 7d 0a 20 64 61 6d 70  69 6e 67 20 33 0a 20 72  | }. damping 3. r|
000003b0  6f 74 61 74 65 20 30 2c  30 2c 34 30 0a 20 74 72  |otate 0,0,40. tr|
000003c0  61 6e 73 6c 61 74 65 20  30 2c 34 2e 35 69 6e 2c  |anslate 0,4.5in,|
000003d0  34 2e 35 69 6e 0a 7d 0a  0a 62 61 63 6b 67 72 6f  |4.5in.}..backgro|
000003e0  75 6e 64 20 7b 0a 20 63  72 65 61 74 65 20 7b 0a  |und {. create {.|
000003f0  20 20 74 79 70 65 20 73  74 61 69 72 73 0a 20 20  |  type stairs.  |
00000400  70 6f 69 6e 74 73 20 31  33 2c 31 31 2c 33 20 20  |points 13,11,3  |
00000410  20 20 20 20 20 20 2f 2a  20 70 6f 69 6e 74 73 20  |      /* points |
00000420  69 6e 20 77 69 64 74 68  2c 20 6e 6f 2e 20 6f 66  |in width, no. of|
00000430  20 73 74 65 70 73 2c 20  70 74 73 20 69 6e 20 61  | steps, pts in a|
00000440  20 73 74 65 70 20 2a 2f  0a 20 20 73 69 7a 65 20  | step */.  size |
00000450  31 34 69 6e 2c 32 69 6e  2c 32 2e 33 33 69 6e 20  |14in,2in,2.33in |
00000460  20 2f 2a 20 77 69 64 74  68 2c 20 73 74 65 70 20  | /* width, step |
00000470  68 65 69 67 68 74 2c 20  73 74 65 70 20 64 65 70  |height, step dep|
00000480  74 68 20 2a 2f 0a 20 7d  0a 20 74 72 61 6e 73 6c  |th */. }. transl|
00000490  61 74 65 20 30 2c 2d 31  31 2e 36 35 69 6e 2c 2d  |ate 0,-11.65in,-|
000004a0  31 30 69 6e 0a 7d                                 |10in.}|
000004a6