Move Forward

BehaviourComposer: ignore everything before this.
I move forward at a constant speed.

Begin micro-behaviour


Begin NetLogo code:

do-every delta-t
  [go-forward 1 * delta-t]

End NetLogo code


The 1 is the speed (in patches per second) of this agent. It can be changed to any other value or replaced by the value of a slider, an attribute, or a random distribution.

Related Micro-behaviours

Any behaviour that changes my heading can work together with this to produce non-linear motion. Examples are TURN-RANDOMLY, TURN-TOWARDS-GOAL, and TURN-IN-DIRECTION-AT-MAXIMUM-SPEED.

How this works

This moves the agent in the direction of its current heading by a constant amount on each cycle.


This was implemented by Ken Kahn.
BehaviourComposer: ignore everything after this.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License