Does anyone know how I could recreate this barreling wave system from this post?

I would like to try and replicate what this developer has made. Here is the post He made the wave system using Roblox’s new editable mesh. I have an editable mesh already with vertices but I cant for the life of me figure out how to replicate the wave system. I don’t want a full written out code, I would just like a little heads up in the right direction and I can take it from there.

1 Like

Create the wave mesh on each client and simulate locally. If it’s critical that the wave maintain a similar state across multiple clients you can periodically sync the simulation with a shared timestamp, such as GetServerTimeNow.

1 Like

Thanks for the information, do you know how I could shape the wave using editable meshes?

Once you’ve created an EditableMesh with a grid of vertices, you can shift each vertex positions with SetPosition. You may also want to adjust normals or UV of faces. Waves generally follow sinusoidal motion (so using math.sin or math.cos); You can sample the amplitude of a vertex with inputs of global offset and time.

1 Like

Thanks for the help! I’ll look into it

Unfortunately due to my terribly math experience I still cant figure this out. Its the shape thats that hard part for me. Is there an equation for a cylinder which could represent the barrel?

Oh, yeah I don’t really have a simple solution for a barrel wave. A realistic simulation of that would likely involve some gnarly math… Best I’ve got is you could try looking for videos to see if anyone has made a tutorial on the subject.

1 Like

Thanks so much, I am terrible at math and I knew this would involve lots of it. But I’ll see what I can do