right

 

right is primitive that tells a turtle to turn a certain number of degrees (between 0 and 360) to the right.

ask turtles [
    right 90
]

Things to keep in mind when using right:

The model example below demonstrates how the right, and its sibling left, primitives work. We have 12 dots representing the 12 hours on the clock and an arrow representing the hour. When we click spin-right, our arrow turns right 1 degree at each tick until it completes the specified number of degrees on the slider.

 

Try it Yourself

 
 
 
 
 
 
 

What's next?

Once you mastered the right primitive, don't stop there. Check out the resources below to improve your NetLogo skills.

 
Published NetLogo models that use the right primitive:
 
 
Similar primitives:
left

Turns a turtle certain amount of degrees to the left.

Read more
forward

Makes a turtle move in any number of units on a straight path.

Read more
towards

Reports the angle of the caller towards an agent.

Read more
face

Changes a turtle's heading towards another turtle or patch.

Read more
 
Learn another primitive: