ecurtiss / CatRom

Creates Catmull-Rom splines for Roblox
https://ecurtiss.github.io/CatRom/
Mozilla Public License 2.0
44 stars 11 forks source link

Support closed RMFs on closed splines #15

Open ecurtiss opened 1 month ago

ecurtiss commented 1 month ago

CatRom uses the double reflection method from Wang et. al, Computation of Rotation Minimizing Frames (2008) to compute rotation-minimizing frames. Given a closed CatRom (i.e., a CatRom that loops), there is no guarantee that the last RMF will match the first RMF. A naive solution is to twist the RMF at a constant rate until the first and last RMFs match. However, Wang describes a better way to do this that I have yet to dig into.

ecurtiss commented 1 month ago

Use case: Roller coasters