Jump to content

  • Log In with Google      Sign In   
  • Create Account

Infinite Spline Line and Player Follow


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 anupgupta   Members   -  Reputation: 128

Like
0Likes
Like

Posted 11 February 2016 - 03:17 AM

Hello,

 

I am using Unity5 for making a 2D game like this one: https://www.youtube.com/watch?v=k4vn85dfm9Y

 

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.

 


#2 ferrous   Members   -  Reputation: 4818

Like
0Likes
Like

Posted 11 February 2016 - 12:04 PM

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, 11 February 2016 - 12:06 PM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.




PARTNERS