I found the Random Movement script on here and was tinkering with it with a test cube I made, and I discovered there isn't really a local direction it leads the cube in. It truly is random I suppose. Too bad..I was gonna make some bunnies :)
Date
Votes
1 comment
-
DoteDote Not at home, but looking over the random movement script, I think you could do what you want by hijacking the "Home" variable. For instance, reverse the range check to "if (distance < Range)". This way, the script should always trend towards "Home". When that "if" triggers, just set a new "Home" vector (pull from a list). Your object should then meander in a controlled, pseudo random pattern.
Please sign in to leave a comment.