How can I generate a randomly curved line from two points?

Hi there, I’m making a smooth terrain generation script. I’m trying to generate paths that run from one building to another. There will be a point on both buildings which I wish to connect with a path. Can anyone help me find a way to script this? Resources and other links would help alot. Thanks!

1 Like

You can create curved paths using bezier curves. Bezier curves may seem daunting at first but reading over some articles about them and just experimenting with them shows that they aren’t that bad.

Bezier curves basically just take at least 2 points and interpolate between them to create a curve. You can start by having the first point on Position A and the final point on Position B and then just fill in some other points in between for the curves.

You can read about bezier curves here: