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 helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Method of scattering objects along spline joebain 1 3 11-26-2024, 03:20 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 5 13 10-29-2024, 10:19 AM
Last Post: _Aka_
  Nested Spline Volume Spot Instantiation merobbins5 3 7 07-26-2024, 09:58 AM
Last Post: _Aka_
  Left-right movement, and spline follow shihaya 3 10 07-12-2024, 12:50 PM
Last Post: _Aka_

Forum Jump: