Basic Agent Behaviors

To create a simple agent in breve, you'll need to subclass one of the basic agent classes, all subclasses of Real:

  • Stationary, an immobile object in the simulated world.

  • Mobile, an object that moves around the simulated world.

  • Link, a physically simulated mobile object.

This chapter describes the basics of implementing agents in breve, with a focus on Mobile agents. Stationary objects are even easier to use than Mobile objects, and Physically simulated Link objects (and their companion class, MultiBody) are described in the chapter on physical simulation ([link]).

The section A Simple Mobile agent ([link]) shows a very basic mobile agent template that can be used to start any mobile agent. The appearance of the agent can be customized in a number of ways—some basic options are described in the section Changing the Appearance of Agents ([link]). Controlling the motion of agents is described in the section Moving Agents Around the 3D World ([link]). The final section describes how events can be scheduled for specific times ([link]).