This is simple tool to create 2D Water, the whole code is exaplained and dispalyed how it works in a tutorial here: (2D Water Tutorial with Sprite Shape in Unity - YouTube) It contains 2 Scenes:
- ExamplesScene - you can see how the water is made step by step.
- FinalPreviewScene - the full water and a box that interacts with it
-
Intro: (00:00)
-
Creating a spring movement: (00:40)
-
Damping movement: (02:25)
-
Spreading movement between springs on impact: (02:57)
-
Creating a shape with sprite shape: (04:07)
-
Adding points dynamically to the sprite shape: (05:20)
-
Moving the sprite shape waves with the springs: (07:06)
-
Smooth waves: (08:42)
-
Update wave count: (09:30)
-
Create wave on impact: (10:27)
-
Add buoyancy 2d: (11:48)
-
Outro: (12:23)
If you would like to see more Guides for Unity, adding more examples for existing ones or completely new series and you have ideas or something you are interested in. contact me or write in the comments of some of the videos.