Wave simulation!

★ I camp up with some new tricks/algorithms to generate more natural and real water waves
★ The effect looks different than I found so far, smoother and more flexible
★ You can drag the yellow ball to interact with the water
★ I hope you like it :slight_smile:

gf

wave.aia (18.1 KB)

16 Likes

A really awesome application of Archimede's law :slight_smile:
Bravo !

3 Likes

Unbelievable...nice work over there.

You may also consider adding the following:

  • Working with densities to control the mass and volume of the ball sprite so that it can sink or float depending on the density

  • Use the OrientationSensor component so that when the user tilts there phone, the water moves, just likely flipping a water bottle.

4 Likes

It took me many hours to do the experiments..
By now it looks kinda good
Can apply to some games or other

3 Likes

Yes I have achieved the 2nd one not long ago with static water surface

1 Like

Dear @beathesnail,
by adding some randomicity it can become a real "hypnotic save-screen".
Amusing and amazing :grinning: :+1: :grinning:

2 Likes

Wow, that is awesome! App Inventor has a lot of potential

1 Like

I like how the Canvas update is just a single DrawShape off your list of points for the water surface. No sprites, all physics.

1 Like