BehaviourComposer: ignore everything before this. Begin micro-behaviour: Begin description: Initialise velocity. End description Initialise velocity using body properties Begin NetLogo code: ifelse the-world-is-3-d? [setxyz my-origin-x + (( [my-initial-x-velocity] of my-body / distance-scale ) * time-scale) my-origin-y + (( [my-initial-y-velocity] of my-body / distance-scale ) * time-scale) my-origin-z + (( [my-initial-z-velocity] of my-body / distance-scale ) * time-scale)] [setxy my-origin-x + (( [my-initial-x-velocity] of my-body / distance-scale ) * time-scale) my-origin-y + (( [my-initial-y-velocity] of my-body / distance-scale ) * time-scale)] End NetLogo code This micro-behaviour set an initial velocity from the proprieties set in the body properties micro-behaviour. This micro-behaviour should run after the body properties micro-behaviour.Authored by Maria Marinari and Ken Kahn.  BehaviourComposer: ignore everything after this. |