Difference between revisions of "Next-to Condition"
Jump to navigation
Jump to search
imported>Mike |
imported>Repenning |
||
Line 1: | Line 1: | ||
− | [[ | + | [[Image:Next to condition.png|150px|Next to condition.png]] |
− | [[ | + | [[Image:Next to expanded.png|150px|Next to expanded.png]] |
− | + | {| cellpadding="10" cellspacing="0" border="0" width="100%" | |
− | + | |- | |
− | + | | align="left" valign="top" width="80" | '''Definition:''' | |
− | + | | align="left" valign="top" width="100%" | True if there is a certain number of agents adjacent to me. Only check the 8 immediatly adjacent agents around me. | |
− | + | |- | |
− | + | | align="left" valign="top" width="80" | '''Parameters:''' | |
− | + | | align="left" valign="top" width="100%" | [[Comparator parameter|comparator]] mathematical operator <br>[[VAT Formula parameter|number]] how many <br> [[Shape parameter|shape]] what shape | |
− | + | |- | |
− | + | | align="left" valign="top" width="80" | '''Example:''' | |
− | + | | align="left" valign="top" width="100%" | The Particle agent in the Accretion 3D project checks if it is next to at least one stationery Particle in the same layer or in the layers above (+1) or below (-1). If so, it changes itself to be a stationery Particle, increments a count and maps its color to a shade, based on the current count of stationery particles. [[Image:Next to condition example.png|500px|Next to condition example.png]] | |
− | + | |} | |
− | |||
− | |||
− | [[Image:Next to condition example.png|500px]] | ||
− | |||
− | |||
− | |||
[[Category:AgentCubes_Conditions]] | [[Category:AgentCubes_Conditions]] |
Revision as of 03:05, 20 April 2012
Definition: | True if there is a certain number of agents adjacent to me. Only check the 8 immediatly adjacent agents around me. |
Parameters: | comparator mathematical operator number how many shape what shape |
Example: | The Particle agent in the Accretion 3D project checks if it is next to at least one stationery Particle in the same layer or in the layers above (+1) or below (-1). If so, it changes itself to be a stationery Particle, increments a count and maps its color to a shade, based on the current count of stationery particles. |