|
From: | Steve Railsback |
Subject: | Re: [Swarm-Modelling] Two questions(Network Graph & SCM) |
Date: | Mon, 13 Feb 2006 09:09:30 -0800 |
User-agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
John Lee wrote:
Could anyone tell me how to solve Network Graph's problem? Such as Heatbugs, how could I do to know how one agent’s route? I mean could I draw a line or whatever to express from a position to another position.
Another way would be for each bug to keep data on its previous locations, e.g., in a list of objects that each contains a pair of previous X and Y coordinates. Then the bug could draw line segments between each of its past locations. In Swarm you would do it with this message to the raster:
- lineX0: x0 Y0: y0 X1: x1 Y1: y1 Width: penWidth Color: c Steve Railsback
[Prev in Thread] | Current Thread | [Next in Thread] |