Getting splines to stick to the ground

Just because this post comes up top results in a Google Search and there’re no images in the answers anymore… here’s my solution:

This is of course added to the Event Graph of a Blueprint with a spline component. The nice thing is if you use the Call In Editor bool (select your custom event and look in the details), it gives you a handy button to call this code when you’ve got the actor selected. You can call it as many times as you like and it will simply position any newly added points on the ground as well. If your spline is incredibly complex it might take a moment to run so don’t spam the button. Also, be sure to select the all the splines and move them up a bit before you press the button, otherwise, your splines might stay below the surface if they’re already there.

5 Likes