Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Latest commit

 

History

History
15 lines (13 loc) · 629 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 629 Bytes

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)