JernejL
22-05-2018, 08:10 AM
https://en.wikipedia.org/wiki/Centripetal_Catmull%E2%80%93Rom_spline
This is possibly the most useful spline / curve for game developers, you simply put points, and the curve points will be generated that will go thru them and do nice and logical, reasonable turns.
https://i.imgur.com/JjRUshZ.png
Example source implementation (in 2d)
https://github.com/JernejL/Centripetal-Catmull-Rom-spline-pascal-example
This is possibly the most useful spline / curve for game developers, you simply put points, and the curve points will be generated that will go thru them and do nice and logical, reasonable turns.
https://i.imgur.com/JjRUshZ.png
Example source implementation (in 2d)
https://github.com/JernejL/Centripetal-Catmull-Rom-spline-pascal-example