@rbxts/catmull-rom-spline
v1.0.0
Published
The module that makes it easy to create [Catmull-Rom Splines](https://www.cs.cmu.edu/~fp/courses/graphics/asst5/catmullRom.pdf) on Roblox.
Downloads
6
Readme
Catmull-Rom-Spline-Module
The module that makes it easy to create Catmull-Rom Splines on Roblox.
Usage
The Catmull-Rom Spline constructor takes in 2 arguments:
points
a table consisting of numbers, Vector2s, or Vector3s and/or BaseParts.tension
[optional]: a number, usually in [0, 1] that visually changes the curve made. If left as nil, tension will default to 0.5.
CatmullRomSpline.new(points: {number} | {Vector2} | {Vector3 | BasePart}, tension: number?)
API
CatmullRomSplineObject:ChangeTension(tension: number)