Posts: 4
Threads: 3
Joined: Jan 2022
Is there a good way to make a gameobject follow a spline in a more 'human/unpredictable' manner, so that for example they weave in and out of the center-line of the path? This way, if you give two gameobjects the same objective of following a spline, they will move differently. This would be useful for making a racing game where the AI-players move more unpredictably. Thanks.
Posts: 2,110
Threads: 92
Joined: Jun 2017
Hi
The Spline Controller has two offset related parameters: Offset Angle and Offset Radius. You can write a script that will modify these values smoothly and pseudo randomly to give the unpredictable impression.
Did this help?
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Posts: 4
Threads: 3
Joined: Jan 2022
(01-16-2023, 10:59 AM)_Aka_ Wrote: Hi
The Spline Controller has two offset related parameters: Offset Angle and Offset Radius. You can write a script that will modify these values smoothly and pseudo randomly to give the unpredictable impression.
Did this help?
Yes, perfect. Thank you!
Posts: 2,110
Threads: 92
Joined: Jun 2017
You are welcome.
If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.