Set () Direction to ()
set [motor v] direction to [this way v]::wedo
Category LEGO Education WeDo 2.0
Type Stack
Introduced in 1.4

The Set () Direction to () block is a LEGO Education WeDo 2.0 and a Stack block. The block sets the direction that a LEGO WeDo motor should turn with. There are three options, listed as "this way" (clockwise), "that way" (counter-clockwise), and "reverse" (simply switches the direction). It was introduced in Scratch 1.4.

This block was titled motor direction () in Scratch 1.4, before being renamed to set motor direction () in Scratch 2.0, then to set () direction to () in Scratch 3.0.

Example Uses

Changing the motor's direction also changes the direction that the LEGO WeDo vehicles move in.

Some example uses for the Set () Direction to () block:

  • Changing a vehicle from moving forward to backwards.
  • Opening and closing the mouth of an animal.
  • Making the LEGO WeDo change direction.
  • Having a model walk or move around, with the legs changing direction.