Of
Usage
Returns the value of a trait belonging to another agent (such as collidee or my parent).
Syntax
Inputs in this block:
- a type of trait from the drop down menu
- an agent block in the socket
Example
This is a model of bacterial growth and reproduction. Bacteria eat food in order to grow. After eating a sufficient amount, the bacteria will undergo mitosis and split into two new bacterial cells. Each lineage of bacteria has its own color, which has been established using the trait of block combined with the my parent block.