Package detail

@rbxts/catmull-rom-spline

AircraftMadness37MIT1.0.0

The module that makes it easy to create Catmull-Rom Splines on Roblox.

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:

  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)