Home » Archimedes archive » Acorn User » AU 1994-01.adf » !FEMS_App_FEMS_App » sims/ClothSphe2
sims/ClothSphe2
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/ClothSphe2 |
Read OK: | ✔ |
File size: | 033E bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
FEMS2 /* drop a cloth on to four spheres */ /* select output style */ rendering { type dots resolution 320,256 view -30,24 } /* simulation parameters */ frame_aim 640 gravity 0,0,-600 time_div 1 /* create the cloth */ solid { create { type sheet points 21 size 16.3in } nearbonds { spring_const 51:range 2.1 } damping 3 translate 0,0,6.9in } /* create the spheres */ background { create { type sphere:points 6:size 2in } translate 2.83in,0,4.6in } background { create { type sphere:points 6:size 2in } translate -2.83in,0,4.6in } background { create { type sphere:points 6:size 2in } translate 0,2.83in,4in } background { create { type sphere:points 6:size 2in } translate 0,-2.83in,4.6in }
00000000 46 45 4d 53 32 0a 2f 2a 20 64 72 6f 70 20 61 20 |FEMS2./* drop a | 00000010 63 6c 6f 74 68 20 6f 6e 20 74 6f 20 66 6f 75 72 |cloth on to four| 00000020 20 73 70 68 65 72 65 73 20 2a 2f 0a 0a 2f 2a 20 | spheres */../* | 00000030 73 65 6c 65 63 74 20 6f 75 74 70 75 74 20 73 74 |select output st| 00000040 79 6c 65 20 2a 2f 0a 72 65 6e 64 65 72 69 6e 67 |yle */.rendering| 00000050 20 7b 0a 20 74 79 70 65 20 64 6f 74 73 20 20 20 | {. type dots | 00000060 20 20 20 20 20 20 20 20 20 0a 20 72 65 73 6f 6c | . resol| 00000070 75 74 69 6f 6e 20 33 32 30 2c 32 35 36 20 20 20 |ution 320,256 | 00000080 20 0a 20 76 69 65 77 20 2d 33 30 2c 32 34 20 20 | . view -30,24 | 00000090 20 20 20 20 20 20 20 0a 7d 0a 0a 2f 2a 20 73 69 | .}../* si| 000000a0 6d 75 6c 61 74 69 6f 6e 20 70 61 72 61 6d 65 74 |mulation paramet| 000000b0 65 72 73 20 2a 2f 0a 66 72 61 6d 65 5f 61 69 6d |ers */.frame_aim| 000000c0 20 36 34 30 20 20 20 20 20 20 20 20 20 20 0a 67 | 640 .g| 000000d0 72 61 76 69 74 79 20 30 2c 30 2c 2d 36 30 30 20 |ravity 0,0,-600 | 000000e0 20 20 20 20 20 0a 74 69 6d 65 5f 64 69 76 20 31 | .time_div 1| 000000f0 20 20 20 20 20 20 20 20 20 20 20 20 20 0a 0a 2f | ../| 00000100 2a 20 63 72 65 61 74 65 20 74 68 65 20 63 6c 6f |* create the clo| 00000110 74 68 20 2a 2f 0a 73 6f 6c 69 64 20 7b 20 20 20 |th */.solid { | 00000120 0a 20 63 72 65 61 74 65 20 7b 0a 20 20 74 79 70 |. create {. typ| 00000130 65 20 73 68 65 65 74 0a 20 20 70 6f 69 6e 74 73 |e sheet. points| 00000140 20 32 31 20 20 20 20 20 20 20 20 20 20 0a 20 20 | 21 . | 00000150 73 69 7a 65 20 31 36 2e 33 69 6e 20 20 20 20 20 |size 16.3in | 00000160 20 20 20 0a 20 7d 0a 20 6e 65 61 72 62 6f 6e 64 | . }. nearbond| 00000170 73 20 7b 20 73 70 72 69 6e 67 5f 63 6f 6e 73 74 |s { spring_const| 00000180 20 35 31 3a 72 61 6e 67 65 20 32 2e 31 20 7d 0a | 51:range 2.1 }.| 00000190 20 64 61 6d 70 69 6e 67 20 33 0a 20 74 72 61 6e | damping 3. tran| 000001a0 73 6c 61 74 65 20 30 2c 30 2c 36 2e 39 69 6e 20 |slate 0,0,6.9in | 000001b0 20 0a 7d 0a 0a 2f 2a 20 63 72 65 61 74 65 20 74 | .}../* create t| 000001c0 68 65 20 73 70 68 65 72 65 73 20 2a 2f 0a 62 61 |he spheres */.ba| 000001d0 63 6b 67 72 6f 75 6e 64 20 7b 0a 20 63 72 65 61 |ckground {. crea| 000001e0 74 65 20 7b 20 74 79 70 65 20 73 70 68 65 72 65 |te { type sphere| 000001f0 3a 70 6f 69 6e 74 73 20 36 3a 73 69 7a 65 20 32 |:points 6:size 2| 00000200 69 6e 20 7d 0a 20 74 72 61 6e 73 6c 61 74 65 20 |in }. translate | 00000210 32 2e 38 33 69 6e 2c 30 2c 34 2e 36 69 6e 0a 7d |2.83in,0,4.6in.}| 00000220 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000230 20 20 20 20 0a 62 61 63 6b 67 72 6f 75 6e 64 20 | .background | 00000240 7b 0a 20 63 72 65 61 74 65 20 7b 20 74 79 70 65 |{. create { type| 00000250 20 73 70 68 65 72 65 3a 70 6f 69 6e 74 73 20 36 | sphere:points 6| 00000260 3a 73 69 7a 65 20 32 69 6e 20 7d 0a 20 74 72 61 |:size 2in }. tra| 00000270 6e 73 6c 61 74 65 20 2d 32 2e 38 33 69 6e 2c 30 |nslate -2.83in,0| 00000280 2c 34 2e 36 69 6e 0a 7d 0a 62 61 63 6b 67 72 6f |,4.6in.}.backgro| 00000290 75 6e 64 20 7b 0a 20 63 72 65 61 74 65 20 7b 20 |und {. create { | 000002a0 74 79 70 65 20 73 70 68 65 72 65 3a 70 6f 69 6e |type sphere:poin| 000002b0 74 73 20 36 3a 73 69 7a 65 20 32 69 6e 20 7d 0a |ts 6:size 2in }.| 000002c0 20 74 72 61 6e 73 6c 61 74 65 20 30 2c 32 2e 38 | translate 0,2.8| 000002d0 33 69 6e 2c 34 69 6e 0a 7d 20 20 20 20 20 20 20 |3in,4in.} | 000002e0 20 20 20 20 20 20 20 20 20 0a 62 61 63 6b 67 72 | .backgr| 000002f0 6f 75 6e 64 20 7b 0a 20 63 72 65 61 74 65 20 7b |ound {. create {| 00000300 20 74 79 70 65 20 73 70 68 65 72 65 3a 70 6f 69 | type sphere:poi| 00000310 6e 74 73 20 36 3a 73 69 7a 65 20 32 69 6e 20 7d |nts 6:size 2in }| 00000320 0a 20 74 72 61 6e 73 6c 61 74 65 20 30 2c 2d 32 |. translate 0,-2| 00000330 2e 38 33 69 6e 2c 34 2e 36 69 6e 0a 7d 0a |.83in,4.6in.}.| 0000033e