View Single Post
Limiting random motion.
Old
ScottDrew
Guest
 
Status:
Posts: n/a
Default Limiting random motion. - 05-05-2008, 10:30 PM

I have an object, i want it to move randomly (2-dimensionally, no forward direction being used.) between four points, lets say x = 5, -5 & y = 3, -3

I want the object to randomly move to a position within these boundaries, any ideas? So far, i can get the first movement to be within the boundaries, but when the fighter moves, the boundaries follow it, so they are relative to the fighter.
   
Reply With Quote