I just want to move my base automatically in random directions in x-z plane but within a given range can anyone help me with that?
1 Answer
1You can utilize Mathf.Clamp() to limit the min and max values for each direction. And you can create a if/else conditional as well to prevent increasing or decreasing the value if it is greater than or lower than the specified min/max values you may have setup as a variable.