Hey folks,
I’m working on adding water to my game which can be walked/surfed on by the player, as seen in games like Wave Race 64, Solar Ash or Wavetale. Of course a flat body of water is very simple to just add a box collider to, the difficulty is creating waves which have appropriate collision rather than being a purely visual effect.
Currently my best solution is to create a skeletal mesh with a bunch of bones animating a plane. This works ok but it’s quite a lot of work to manually animate the waves in a natural looking way, and could require a lot of different meshes to suit various level design needs.
So I wonder, does anyone have a better idea? I’ve seen people use buoyancy with the water plugin but I can’t seem to get it working and I wonder how well it would interact with my character controller anyway. Since buoyant objects can react with waves I wonder if I could somehow use that wave data to create solid collision instead?
Failing that, is there an easier way I can apply a sine wave to a mesh instead of manually animating it with a skeleton? That seems to be what they did in Wave Race.
I’d love to hear any other ideas people may have.