Spline Level Editor
InspirationHi, I recently found this video about how some of the things worked when Rayman Legends was made and I thought that the way they could bend and form their platforms when creating levels looked really useful. My versionI used Unity for creating my spline thing, mostly because I also want to learn more about unity and it seemed like the easiest approach.
The main goal I had was to create a mesh generated from certain points in the x and y axis that curved smoothly to create rounded corners between the lines formed by the points.
I started with creating points represented by a 2d vector array and tried to find the points in between these vectors to create more points that would form a sort of a rounded motion. I ended up with this result.
Next stepI would like to create this in the z-axis as well to see if that would be something I could manage to do. It could be useful for creating tunnels or pipes fast In an level editor. I also want to try making this more like a plugin with its own unity window and drag able points in the editor view. Right now the points are just controlled as a public Vector2d array. It would also be really useful to create like a button that would save your created mesh in the asset folder. SummaryThis was a real fun project to work with But I have only had the time to work with this for one evening. I hope I would be able to get some more spare time over so that I could continue to make the improvements I have planed for it. I also think I learned pretty much by doing this project. |

