06-19-2026, 08:52 PM
Hi! Just started using Curvy Splines. So far it's quite remarkable, I can tell I have a lot to learn.
My game revolves around building railroad tracks from pieces. I'm building out the "blueprint" mechanism that directs the player where to put the rail. I'm using a basic generator to compute points on the curve to create the "place here" objects.
It works like a charm for the sleepers the the rail segments are in interesting case. The single point sample on the curve at the rail interval doesn't pick the most intuitive position and rotation for the rail.
Accepting that the inner/outer radius will create overlap and gaps, the placement (centered on the green line) is the aesthetic preference such that the ends of the rails approximately line up. When sampling a single point the tangent will not capture local region curvature.
I can of course manually nudge them into an approximate preferred position but I know the spline knows the end points, I'm hoping for some Curvy Spline advice that will help me realize how to position and rotate these rail segments. The endpoints also seem like a challenge.
Thanks!
My game revolves around building railroad tracks from pieces. I'm building out the "blueprint" mechanism that directs the player where to put the rail. I'm using a basic generator to compute points on the curve to create the "place here" objects.
It works like a charm for the sleepers the the rail segments are in interesting case. The single point sample on the curve at the rail interval doesn't pick the most intuitive position and rotation for the rail.
Accepting that the inner/outer radius will create overlap and gaps, the placement (centered on the green line) is the aesthetic preference such that the ends of the rails approximately line up. When sampling a single point the tangent will not capture local region curvature.
I can of course manually nudge them into an approximate preferred position but I know the spline knows the end points, I'm hoping for some Curvy Spline advice that will help me realize how to position and rotate these rail segments. The endpoints also seem like a challenge.
Thanks!

