Hey guys. I’ve been digging and I’ve found tons of stuff on making splines in the editor, but I’m trying to understand the best way to create a player-made spline. For example, in my game there’s a lot of crafting, and I want the player to be able to lay down a fence that will follow the curvature of the ground. I can’t seem to find anything on how to go about this process, though. I’d really appreciate any suggestions. It doesn’t necessarily have to be perfectly step by step, just something that can give me an understanding of how it might work.
I can figure out how to place the initial spline mesh, but not how to add the points correctly. What I have is a line trace where the initial spline mesh is placed, and then I do another line trace to decide where the end will be. Calculating the points between is my issue. This was what I tried, but to no avail:
I’ve also tried this: