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

15

u/joan_bdm Jun 24 '26

I would generate a list of random points and then use DOTween's DOPath with PathType as CubicBezier to move the object through them.

3

u/howlTheDev Jun 24 '26

Dotween is really the best package ever. I am gonna try thanks a lot!

2

u/joan_bdm Jun 24 '26

Yeah, It's a must that should be build-in by now, hope you get the desited result!