Depending on how you plan to apply this, it might be feasible to write a program in Javascript or Python or whatever to modify an SVG file on the fly based on some "physics" rules you make up - I think Maarten's email would be a good starting point for research. I have heard the word for this before, I just do not remember it.
-Arlo James Barnes