Wander (of Motion
)¶
-
class
Wander
¶ Defined in Wander.sc.
The Wander mover makes an Actor wander around aimlessly.
Example usage:
; Make the man wander, up to a distance of 20 pixels from each place he stops. (theMan setMotion: Wander 20)
Note that this class won’t intelligently direct an Actor around polygon obstacles.