> I know I've asked this before, but what's the algorithm for this?
The wave equation.
http://en.wikipedia.org/wiki/Wave_equation
2nd time differential of "wave value" is proportional to the 2nd spatial
differential of "wave value"
2nd time differential is just acceleration (use it in an integrator like RK4
to get the new positions).
2nd spatial differential in 2D is just d2u/d2x + d2u/d2y
See attached POV code.
Post a reply to this message
Attachments:
Download 'us-ascii' (3 KB)
|