1.0.0 • Published 2 years ago

@rbxts/catmull-rom-spline v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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: 1. points a table consisting of numbers, Vector2s, or Vector3s and/or BaseParts. 2. 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)