Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connections Between Opposing Splines
#1
Hello!

I'm building a puzzle game where the user can place prefabs of track pieces, which each have smaller splines that connect together at runtime. When the spline directions are aligned (last point connects to first point of next piece) the transition works smoothly, but issues arise when the two splines are in opposite directions (last point connects to last point, or first to first) below:

   

When my controller drives forward into the end of the first piece, it flips and stops moving (Clamping is active) as it is now trying to drive forward into the connection it just used, needing it to reverse to continue in the same direction as it was. The same happens when reversing back through. How would I be able to ensure that the controller smoothly transitions over to the new track piece in the same direction regardless of the direction/rotation of the next track?
Reply
#2
Hi,
The solution to your issue should be to use the "Allow Direction Changes" setting in the "Connections Handling" section of your spline controller.
Did this help?
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
  Spawn at start/ end of splines rickgplus 4 2,218 03-21-2025, 12:34 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 1,463 03-18-2025, 10:11 PM
Last Post: _Aka_
Smile Simple splines movement shills 3 2,393 02-26-2025, 09:40 AM
Last Post: _Aka_
  Mesh Generation between two splines vatan 4 2,791 02-14-2025, 07:11 AM
Last Post: vatan

Forum Jump: