Smooth Spline Generation

By having the forward vector of the previous controlpoint of the spline affect the position of the next controlpoint, this results in a more modest change of direction which gets  even more smooth thanks to the algorithm. This little gif shows the change, I also made the spline regenerate once the player passes a certain progress limit.ezgif-3-69bfc07534.gifezgif-3-a0f6df12b3

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s