Hacker News new | past | comments | ask | show | jobs | submit login

Fun trick: Pause the simulation with the space bar. Then, take your mouse and drag it on the surface of the water, you will notice it creates ripples but in the paused state.

Drag the mouse rapidly back and forth in a very tiny area so that it creates a layered 'ripple' that grows and grows. If you spend about 2 minutes doing this you can make the ripple go like 10 feet high completely off the screen.

Then unpause the simulation for a massive tsunami.




Rather than dragging, just click in the same spot hundreds of times to make a huge tower of water, then unpause to see a single ring of concentric waves and perfect wave reflection/interaction effects.


Or paste this into the console:

     water.addDrop(x, y, radius, strength)
0,0 is the center, bounds are -1 to 1. 0.1 radius is a reasonable spike, 1 radius is a huge swell. 1 strength is really big. 10 is ridiculous. Try negative numbers too!

Try:

     water.addDrop(0, 0, 0.1, 5)


water.addDrop(5, 9, -0.03, 1) is cool, especially as it starts to settle


HOLY CRAP.... Dude


If you click a lot, the level of water gets higher. Each click adds some water to the tank.

edit: The white sphere don't use the real level of water to decide where it should float (when gravity is activated)


Or automate the process:

    for i in $(seq 1 100); do cliclick c:.; done


But if you put the ball on half-way on the surface, it seems the water waves don't bounce on it. Or is it me ?


If you do it in the middle, you get some really nice patterns


This was really really fun! :D


I got a very nice heart shape by dragging: http://i.imgur.com/0675p4W.png




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: