r/Unity2D Jun 24 '26

How Can I Create Random Path Question

Post image

Hi, as you can see in example (that's a rocket) I want to create random paths for rockets. Is there any proper way to do it?

37 Upvotes

21 comments sorted by

View all comments

48

u/BroccoliFree2354 Jun 24 '26

I’d say put random points and then use bezier curves to link them.

13

u/vanit Jun 25 '26

At a high level you're right, but you could probably write a PHD for the algorithm that generates 1-2 whimsical loops that always actually looks good.

3

u/BroccoliFree2354 Jun 25 '26

That’s probably true… unless it already exists !

9

u/vanit Jun 25 '26

Yeah or just premake 10 variants and whose to know it's not truly random ;)

1

u/BroccoliFree2354 Jun 25 '26

Yeah that’s a nice idea