Libraries‎ > ‎orbits‎ > ‎

Set my velocity

BehaviourComposer: ignore everything before this.

Begin micro-behaviour:

Begin description:

This sets the color of the velocity turtle to the color of the body as well as setting body's my-velocity to the newly created velocity.

End description

Set my velocity

Begin NetLogo code:

let body myself
let velocity self
ask myself [ set my-velocity velocity ]
ask velocity [set color [color] of body 
              set my-body body ]

End NetLogo code

Authored by Maria Marinari and Ken Kahn.

BehaviourComposer: ignore everything after this.