Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Way to make gameobject follow splines 'human-ly'?
#1
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.
Reply
#2
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
(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!
Reply
#4
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to make fast moving controller go all the way to linear points?(curvy8) hawken 7 7 06-06-2023, 09:47 AM
Last Post: _Aka_
  Programming a first-person player/camera to follow a Curvy Spline kenmarold 1 2 05-21-2023, 05:03 PM
Last Post: _Aka_
Information Curvy Splines is on sale _Aka_ 0 0 05-15-2023, 07:48 PM
Last Post: _Aka_
  Is there a way to deform a gameobject? Lupos 5 14 05-15-2023, 12:15 PM
Last Post: _Aka_

Forum Jump: