Hi, I’m trying to make Gerstner waves. One problem I’m having is it’s not tiling correctly even though the vertices start in the exact same position.
here is my code:(just placeholder)
local k = 2 * math.pi / 30
local speed = math.sqrt(9.8 / k)
local a = 0.5 / k
local d = Vector2.one
local f = k * (d:Dot(Vector2.new(node.Position.X, node.Position.Z)) - speed * workspace.DistributedGameTime)
node.Transform = CFrame.new(d.X * (a * math.cos(f)), a * math.sin(f), d.y * (a * math.cos(f)))
Thanks in advance