NOVEIGMA
(Vernumerator)
January 3, 2025, 10:42pm
2
You’re probably looking for splines. It’s when you create a smooth path from multiple points. You can use it for the camera by putting points all across the map. There’s a lot of math involved, but there’s plenty of community modules available.
In mathematics, a spline is a function defined piecewise by polynomials.
In interpolating problems, spline interpolation is often preferred to polynomial interpolation because it yields similar results, even when using low degree polynomials, while avoiding Runge's phenomenon for higher degrees.
In the computer science subfields of computer-aided design and computer graphics, the term spline more frequently refers to a piecewise polynomial (parametric) curve. Splines are popular curves in these...
Here’s one module I found:
[image (1)]
SimpleSpline is a open source module that creates spline objects easily by using CatRom
This module works by creating a spline based on the points you pass through
Example Usage
local Points = {CFrame.new(0,0,0), CFrame.new(0,5,20), CFrame.new(24,0,40)}
local Spline = SimpleSpline.new(Points, 0.5, 0)
Spline:SetOptions({
Uniform = true,
Offset = CFrame.new(),
Loop = true,
Reverse = false
})
Spline:Visualize()
local Object = -- Your object to move along the …
2 Likes