Navigation Bar AgentSheets Education R&D Support About Us Manuals Tutorial Movies FAQ Books Classes

On Top Of Condition

Definition: The On Top Of condition checks whether the agent is on top of a specified type of agent with output connectivity in the specified direction.

If the agent below has output connectivity in the direction indicated by the Direction parameter, the condition is true. Otherwise, the condition is false.

Parameters: class, direction
Example: In the Sustainopolis project, the Auto agent checks to see if it is on top of a piece of road whose output is right. If it is, the Auto agent moves right.

reference manual | ©2010 AgentSheets, Inc. | contact us