I am working on a project where I have to approximately simulate the ocean waves. Currently, I am using a mesh modification approach. I am able to simulate low amplitude waves using the following equation:
yVal = Mathf.Sin(180 * Mathf.Deg2Rad / freqUpdated + Time.time * speedOFWave) * halfWaveHeight;
Now, I want to extend this equation to simulate breaking waves for a high value of "wave height".
Approach tried:
- I tried creating code similar to this plugin but the smooth transition between low amplitude waves to these breaking waves is not possible with that approach.
I have the following questions:
- What kind of modification can be done to the above sin wave equation to simulate breaking waves?
- Are there any other mathematical techniques that can simulate low amplitude and breaking waves?
- Is it feasible to do this type of ocean simulation using water particles?
I would appreciate any suggestions and thoughts on this topic. Thank you.