These pages are auto-generated from self-documenting comments embedded in class files.
For more information on breve and steve, refer to the breve homepage.

Mobile : Wanderer

Class description:

A Wanderer is a subclass of Mobile that wanders randomly around a certain space. The range of wandering is adjusted with the set-wander-range method.

Subclasses of Wanderer should implement their own iterate method to perform class specific tasks, and then call the method super iterate in order for the Wanderer object to handle the object's motion.

Methods:

  • randomizeLocation
  • setTopVelocity
  • setWanderRange
    randomizeLocation( self )

    Move the Wanderer to a random location within the wander space.


    setTopVelocity( self, newValue )

    Sets the top velocity of the wanderer to newValue.


    setWanderRange( self, wanderVector )

    Sets the range from the origin that the object can wander. The distance the object will wander from the center is the length of wanderVector. The direction of the wandering is proportional to the normalized vector--that is to say that if wanderVector is (100, 100, 0) that motion will be restricted to the X/Y plane.