This second step illustrates how to obtain a random point inside a geometry. We will also define some moving agent called
- Define a new species of agents: the
peopleagents have a point for geometry and are represented by a yellow circle of radius 10m.
- At initialization, 100
peopleagents are created. Each
peopleagent is placed inside a building of type 'Residential' (randomly selected).
We define a new species of agents: the people agents. In this model, these agents will not have a specific behavior yet. They will be just displayed. Thus, we just have to define an aspect for the agents. We want to represent the
people agents by a yellow circle of radius 10m. We then use the
circle operator to define the shape to draw in the
draw command, with the expected inner color (facet
color) and border color (facet