View Full Version : How do I code a spline path?

02-27-2012, 03:01 AM

I'm trying to create a spline path as seen in the link below but trying to find the fomular to use has been the most difficult aspect since I don't know how to interpolate the points. The spline will be used to create a path for a game I'm making were I need objects to follow such a path (is sonething a bit similar to zuma deluxe: http://www.terragame.com/screens/zuma_deluxe.jpg ).


Plus what code could I use to generate such a path.

04-05-2012, 06:46 PM
There is a lib called SGcore - there is a demo version available for download. It contains spline functions. Just keep in mind you need at least 3 points to define a spline using that lib.