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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Filling a closed spline dynamically rickgplus 1 73 04-16-2025, 08:56 AM
Last Post: _Aka_
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 200 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 739 01-20-2025, 12:25 PM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 344 01-02-2025, 09:58 AM
Last Post: _Aka_

Forum Jump: