I’m working on a 2D surfing game and could use some suggestions on creating a dynamically generated and animated wave.
Here’s my concept art:
I’m going to break the wave into two main parts. The back of the wave (what the surfer will contact) and the front of the wave (what makes the tube).
I’ve created the back of the wave by manually position vertices of a mesh.
Here’s a screenshot (dark blue is the wave):
I plan to adjust the position of the vertices in the Update() function. I’ll pick a vertex somewhere along the top edge to start the wave “crashing”. Form this vertex, I’ll create another mesh that will represent the front part of the wave that will continue to get larger and fall towards the ground.
I’m a little worried about the math to accomplish this so that it looks organic, and also allows dynamic generation (smaller/larger waves, bigger barrel, etc).
I wanted to check with the community incase anyone had some creative ideas on how you would approach it? I’m willing to purchase assets from the asset store if they’ll help.