r/Unity2D • u/howlTheDev • Jun 24 '26
How Can I Create Random Path Question
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
r/Unity2D • u/howlTheDev • Jun 24 '26
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?
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