RedAgent an object that can sense and act
Inherits from: RedObject, RedBoid, RedParticle
note that size is used as radius for this object. works only in 1-2D for now.
instance variables:
<>state
whatever one like to save.
>sense
a Function. called as the first thing in the agent's update method.
>act
a Function. called as the second thing in the agent's update method.
a= RedWorld.new
b= RedAgent(a)
a.objects
b.dump
b.sense= {"agent sensing".postln}
b.act= {"agent acting".postln}
b.update
//see examples folder