Jump to content
  • Advertisement
Sign in to follow this  
anupgupta

Unity Infinite Spline Line and Player Follow

This topic is 979 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

 

I am using Unity5 for making a 2D game like this one: 

 

i have been able to draw the splines and make the player follow..i have been trying to draw multiple splines and attached them together like chaining

one spline to other at runtime. but the issue i am facing it where the first line ends and the second line starts do not math with respect to angle.

 

Any ideas how can i draw a smooth infinite spline line like the above game.

 

Share this post


Link to post
Share on other sites
Advertisement

I think I would try Catmull-Rom, you can add (and remove) control points to it easily without mucking up the existing spline, because the control points are all guaranteed to be on the line.

Edited by ferrous

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!