Code covered by the BSD License  

Highlights from
2d gas simulation interactive

image thumbnail
from 2d gas simulation interactive by Maxim Vedenyov
It is possible to move balls with mouse. Clicked ball will get velocity of pointer.

acc
function acc
% set velocities to zeros;
global vx vy
vx=1.1*vx;
vy=1.1*vy;

Contact us