hey! as you probably have guessed, the main purpose of this blog is so that i can post old unfinished stuff that i think look cool :D, which brings me to this - my cool bubbles engine, left click to start generating bubbles :)
basically what i did is this: the bubbles move upwards along the Y axis, and move by Sin(y) along the X axis, each bubble is generated with a random size parameter which also determines the coefficient of the Sin(y), this way small bubbles get a small wave length and large bubbles get a large wavelength trajectory.
heres a more complex example with a few extra features i made, if you click for more than a few seconds you will see how the water current changes, plus!, walls collision :D
heres a more complex example with a few extra features i made, if you click for more than a few seconds you will see how the water current changes, plus!, walls collision :D