Home » Archimedes archive » Acorn User » AU 1994-02.adf » !FEMS_App_FEMS_App » sims/cloth/ClothSphe2
sims/cloth/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-02.adf » !FEMS_App_FEMS_App |
Filename: | sims/cloth/ClothSphe2 |
Read OK: | ✔ |
File size: | 0341 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 } air_damp 4 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,4.5in } 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 61 69 72 5f 64 61 6d 70 20 34 0a 20 74 72 61 | air_damp 4. tra| 000001a0 6e 73 6c 61 74 65 20 30 2c 30 2c 36 2e 39 69 6e |nslate 0,0,6.9in| 000001b0 20 20 0a 7d 0a 0a 2f 2a 20 63 72 65 61 74 65 20 | .}../* create | 000001c0 74 68 65 20 73 70 68 65 72 65 73 20 2a 2f 0a 62 |the spheres */.b| 000001d0 61 63 6b 67 72 6f 75 6e 64 20 7b 0a 20 63 72 65 |ackground {. cre| 000001e0 61 74 65 20 7b 20 74 79 70 65 20 73 70 68 65 72 |ate { type spher| 000001f0 65 3a 70 6f 69 6e 74 73 20 36 3a 73 69 7a 65 20 |e:points 6:size | 00000200 32 69 6e 20 7d 0a 20 74 72 61 6e 73 6c 61 74 65 |2in }. translate| 00000210 20 32 2e 38 33 69 6e 2c 30 2c 34 2e 36 69 6e 0a | 2.83in,0,4.6in.| 00000220 7d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |} | 00000230 20 20 20 20 20 0a 62 61 63 6b 67 72 6f 75 6e 64 | .background| 00000240 20 7b 0a 20 63 72 65 61 74 65 20 7b 20 74 79 70 | {. create { typ| 00000250 65 20 73 70 68 65 72 65 3a 70 6f 69 6e 74 73 20 |e sphere:points | 00000260 36 3a 73 69 7a 65 20 32 69 6e 20 7d 0a 20 74 72 |6:size 2in }. tr| 00000270 61 6e 73 6c 61 74 65 20 2d 32 2e 38 33 69 6e 2c |anslate -2.83in,| 00000280 30 2c 34 2e 36 69 6e 0a 7d 0a 62 61 63 6b 67 72 |0,4.6in.}.backgr| 00000290 6f 75 6e 64 20 7b 0a 20 63 72 65 61 74 65 20 7b |ound {. create {| 000002a0 20 74 79 70 65 20 73 70 68 65 72 65 3a 70 6f 69 | type sphere:poi| 000002b0 6e 74 73 20 36 3a 73 69 7a 65 20 32 69 6e 20 7d |nts 6:size 2in }| 000002c0 0a 20 74 72 61 6e 73 6c 61 74 65 20 30 2c 32 2e |. translate 0,2.| 000002d0 38 33 69 6e 2c 34 2e 35 69 6e 0a 7d 20 20 20 20 |83in,4.5in.} | 000002e0 20 20 20 20 20 20 20 20 20 20 20 20 0a 62 61 63 | .bac| 000002f0 6b 67 72 6f 75 6e 64 20 7b 0a 20 63 72 65 61 74 |kground {. creat| 00000300 65 20 7b 20 74 79 70 65 20 73 70 68 65 72 65 3a |e { type sphere:| 00000310 70 6f 69 6e 74 73 20 36 3a 73 69 7a 65 20 32 69 |points 6:size 2i| 00000320 6e 20 7d 0a 20 74 72 61 6e 73 6c 61 74 65 20 30 |n }. translate 0| 00000330 2c 2d 32 2e 38 33 69 6e 2c 34 2e 36 69 6e 0a 7d |,-2.83in,4.6in.}| 00000340 0a |.| 00000341