Hi,
I’m a newbie in writing scripts. Please I’ll like to know how to write scripts in order for a rigidbody to get a generated speed in its e.g. 10mph,15mph, 20mph, 25mph, 20mph, 15mph etc.
How do I implement this?
thanks
If you have specific speed values in mind (as you’ve shown above), you can put them in an array and use Random.Range to access them via the index number. Or if you just want any number between 0 and 25 mph, you can just use Random.Range (0,25)