Who doesn’t like curves. I particularly like them for their smoothness, so here is a plugin I’ve worked on for my development team to allow people to easily build any sort of curves, which can later be used for very easily coding stuff like trains and more.
Not really, it could be optimized just a little bit, but it’s perfectly fine as it is. As for the parts, they are mainly here for visual and debugging purposes. They will not be visible in game (since they will probably be parented in some modules inside of ReplicatedStorage) and I could even manage to use Vector3Values or to simply store positions inside of a table to use them later for lerping.
The user simply have to set at least four keypoints and curves get generated along the way. Once you think that the curve is done, simply press the “Save” button which will make a folder. It will also automatically name all the points that are made up by the curve so that it’s ordered, and put them in the folder.
You can later use the points inside that folder to lerp a model around so that it travels the curve.
Can you make roads with this plugin? Usually I’d have to resort to making them with the Archimedes plugin but if this supports making roads then that would be amazing
Hmmm interesting, probably not unfortunately. Best it could do regarding roads would be to build a continuous trajectory that cars could use to move and rotate smoothly. That’s an interesting idea I haven’t considered, but most of the builders I work with already get their roads done on softwares like blender, so I didn’t really consider that as for now.
The plugin is not exactly meant for building unfortunately. I’d say it’s more of a thing that programmers could relate to.
It can work in 2D as well as in 3D. It’s kind of funny that you speak about this now, because I just added a few characters that make the plugin consider the height and not only the X and Y coordinates.
If you hover your mouse in air, you can’t really do much unfortunately. You’d want some part to stay in the air so that the raycast finds something that can serve as a position.