(Redirected from Set Motor Direction () (block))
Set () Direction to () | |
set (motor v) direction to (this way v) | |
Category | LEGO Education WeDo 2.0 |
Type | Stack |
Introduced in | 1.4 |
The set () direction to () block is a stack block and a LEGO Education WeDo 2.0 block. Its options are "this way", "that way", and "reverse". The block sets the direction that the LEGO WeDo unit motor turns with depending on the drop-down input.
This block was titled "motor direction ()" in Scratch 1.4, before being renamed to "set motor direction ()" in Scratch 2.0, then "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 are:
- Changing a vehicle from moving forward to backwards
- Opening and closing the mouth of an animal
- Rapidly changing the direction back and forth
- Having a model walk or move around, with the legs changing direction