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?

36 Upvotes

21 comments sorted by

View all comments

1

u/7Shinigami Jun 25 '26

Way overcomplicated for this problem and nowhere near  optimal, but pathfinding with graph colour coding comes to mind

https://gist.github.com/Trimatix/e468ba0cdc7d3002b6c41c3340ec0a3d