Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
smooth connection of two splines.
#1
Great plugin! Thanks for your work.
5.1.0
Just starting to figure it out. But I just can not realize such a thing. I spawn the pre-made splines of which create the path along which the spaceship is flying. On their connection, I create a connection, set the flags for synchronizing position and rotation. So I set the pivot point for the spline to the first point, trying to rotate the next spline relative to the angle of rotation of the last and first point of the splines (baked orientation). But just can not connect them seamlessly. the position is the same but with the angle all the time something is wrong. Is there any way to precisely rotation the next spline?
A bit of visualization in the attachment )


Attached Files Image(s)
   
Reply
#2
Hi,
Thank you, for the compliment. Glad you like it.
Can you send me the scene please?
Thanks and have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
The solution is to compute the second spline's orientation in such way that the last tangent of the first spline is alligned with the first tangent of the second. I will PM you with a modified version of your code
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Path not as smooth as spline jawadkhan.9026 3 49 06-12-2019, 11:19 AM
Last Post: _Aka_
  Adding multiple splines to one connection dazz777 3 542 03-07-2019, 10:44 AM
Last Post: _Aka_
  Creating connection from code kardoser 5 1,050 02-27-2019, 11:29 AM
Last Post: _Aka_
  Connections for large splines DekoGames 6 1,224 01-04-2019, 11:09 AM
Last Post: _Aka_

Forum Jump: