Show HN: A rough simulation of a sail boat (2D Wireframe)
This is a very rough simulation of a sail boat (2D wireframe), that you can sail using force of "wind" (modeled as a million particles, animated using webgl) striking on the sails. The position of the wind particles and the forces of the particles striking on the sails is computed in WebGL shaders.
The forces are NOT re-calculated at each frame. Which might cause some artifacts. For example, the boat might start moving after the wind has passed, if you continue adjusting the rudder and sail angle.
You can adjust rudder using q/w keys and sail angle using o/p keys.
See if you can sail into the wind, by finding the right combination of sail angle and rudder. It is a bit hard. Adjusting rudder and sail to changing wind directions can be challenging. But it should be fun once you figure it out.
4 comments
[ 4.4 ms ] story [ 23.4 ms ] threadAnyway, I have turned off randomizing wind directions at load and have added a check box to enable/disable it.