Libraries‎ > ‎Library‎ > ‎Movement‎ > ‎

Display current turtle state

BehaviourComposer: ignore everything before this.

Begin micro-behaviour:

Begin description:

Update the heading and position of the agent immediately

End description

Update heading and position immediately

Begin NetLogo code:

let ignore-1 update-attributes 
let ignore-2 update-turtle-state

End NetLogo code

How this works

This updates the attributes and then the turtle state of the calling agent.

Related micro-behaviours

Useful to add to buttons created by Create a button with associated micro-behaviours or Create a button with associated NetLogo code that change the heading or position of an agent.

Note: This behaviour is useful only for buttons to provide feedback even if the model isn't running.

History

Update heading and position immediately was implemented by Ken Kahn on 28 September 2012.

BehaviourComposer: ignore everything after this.

Comments