Catenary Curve In 3D In Lua
Budget: £70 – £120 GBP
Here's how the Catenary Curve is intended to be designed. ~ This is also to be possible within the Roblox engine which runs on Luau.
A function that takes in three parameters which consists of the following queries
1. OriginVectorPosition, 2. TargetVectorPosition, 3. RopeLength
The RopeLength is however long the catenary curve can be.
This function will return a function where you provide it a interpolation point value (Alpha) for the function to return the interpolated 3D vector position based from the Alpha. Example, giving it the alpha of 0.5 will interpolate to the middle of the arch of the curve.
Example code should look like this
local Curve = DrawCatenaryCurve(PointAVector, PointBVector)
Curve(.5, function(interpolatedVectorPosition)
-- Gives us the vector that was interpolated to the middle via .5
end)
A function that takes in three parameters which consists of the following queries
1. OriginVectorPosition, 2. TargetVectorPosition, 3. RopeLength
The RopeLength is however long the catenary curve can be.
This function will return a function where you provide it a interpolation point value (Alpha) for the function to return the interpolated 3D vector position based from the Alpha. Example, giving it the alpha of 0.5 will interpolate to the middle of the arch of the curve.
Example code should look like this
local Curve = DrawCatenaryCurve(PointAVector, PointBVector)
Curve(.5, function(interpolatedVectorPosition)
-- Gives us the vector that was interpolated to the middle via .5
end)