I’ve been trying to make a wave collision using a free module released on devforum:
i’m trying to calculate 3 points and rotate and x object between the 3 points, something like this:
but whitout creating the wedges.
what i’ve been tryed:
-- this is inside a while true loop
local point1 = workspace.A.Position
local point2 = workspace.B.Position
local point3 = workspace.C.Position
local frontVector = object.CFrame.lookVector
local upVector = object.CFrame.upVector
local cframe = CFrame.new(point1:lerp(point2, tick()/time):lerp(point3, tick()/time))
cframe = cframe * CFrame.fromMatrix(Vector3.new(), frontVector, upVector)