Hi!
I am creating a procedural rail using splines. The idea is: as soon as I place the blueprint on the level, the spline automatically snaps to the landscape and align itself correctly. ![]()
As you can see on the pic, the rail are not rotation-aligned to the landscape.
So far it was easy to snap the spline locations to the landscape, but does anyone know how to align the point rotation too?
I mean, what are the maths to align the spline point to the ground?

