Curves, curves and curves

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.

Here’s an example of how it works like
https://cdn.discordapp.com/attachments/689686353021370376/857746540621987880/2021-06-24_18-16-18.mp4

11 Likes

does this cause much lag at all?

1 Like

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.

1 Like

I don’t understand, could you explain in more detail what this does?

1 Like

The post says it, it creates a smooth curve between two points.

1 Like

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.

2 Likes

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

1 Like

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.

2 Likes

So Can this make curved buildings or at least its framework so that we can make some stylish buildings

and also can this work on air?

1 Like

`

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.

2 Likes

I’ll be posting a short demostration of what could potentially be done when I get back, something very simple.

1 Like

i already made them, Draw | Drawing plugin. anyways the curve looks very smooth and shiny

1 Like

Oh ok, that’s pretty cool actually

Here’s what it would typically be used for

A bit faster for the impatient ones

https://cdn.discordapp.com/attachments/689686353021370376/857825652375552060/2021-06-24_23-31-32.mp4

1 Like

Do you mean X and Z coordinates?

1 Like