Xref: utzoo comp.sys.amiga:40112 comp.graphics:7488 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!apple!oliveb!amiga!cbmvax!mitchell From: mitchell@cbmvax.UUCP (Fred Mitchell - QA) Newsgroups: comp.sys.amiga,comp.graphics Subject: Re: Computer Dreams and water Keywords: wave, vibra Message-ID: <7919@cbmvax.UUCP> Date: 14 Sep 89 23:22:38 GMT References: <23951@louie.udel.EDU> <14417@netnews.upenn.edu> Reply-To: mitchell@cbmvax.UUCP (Fred Mitchell - QA) Organization: Commodore Technology, West Chester, PA Lines: 12 I have written a program that simulates waves by creating a grid of 'masses' attached to 'elastic strings'. Then for each mass, I take its differential elevation from each of its neighbors and relate a force vector to it. Then I derive the acceleration (F = mA) and integrate the acceleration to get the velocity, and that to get the new position. I do this for each mass and store the new position in a new array, redraw the 'grid' to the new values, and start over again. The program that does this is called 'Vibra' and runs on the Amiga. It is available from me(!) or you might find it lurking on a Amiga BBS somewhere. If anyone is intrested, I will upload it and/or the source code here. Leave me E-mail or call me at (215)228-7490. -Fred Mitchell