Skip to main content

Right By Degs

Turns right by a specified number of degrees.

Right By Degs block

Description

The Right By Degs block orientates the agent in Spaceland to the right of its original heading by the inputted number of degrees during each StarLogo clock tick. This is a code block part of the Movement drawer.

Usage

The Right By Degs block orientates the agent in Spaceland to the right of its original heading by the inputted number of degrees during each StarLogo clock tick.

Syntax

Inputs in this block:

  • A number (degrees to turn right)

Example

The Right By Degs block is commonly used for creating random movement patterns when combined with forward movement blocks, allowing agents to wander throughout Spaceland.

Notes

The Right By Degs block rotates agents clockwise when given positive values. Negative values will cause the agent to turn left instead.