Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smoothly connecting to Linear spline
#1
Hi there,

I am trying to connect a Catmull Rom (or Bezier) to a Linear spline. Each has the follow-up set correctly.

Is there a way to align the Catmull Rom connection to the Linear so the connection is smooth? I am doing this in code not in the editor if that matters.

[Image: 2023-12-23-05-41-45-Working-Title-2-Main...1-DX11.png]

Thank you and Happy Christmas and 2024 from Australia (currently 35 deg C argh)

John
Reply
#2
Hi
This is easily done with Bezier spline: just set the last CP's bezier handles so that the in-handle is on the same line than the linear spline.
For Catmull Rom splines, there might be a clear formula to achieve that, but I am unaware of it. The idea would be to set the Auto End Tangents settings of the spline to false, and then place the last CP to some position that gives the proper result.
I hope this helped.
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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  GO can't fit end of the spline GameDeveloperek4123 3 14 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: