|Set () Direction to ()|
set [motor v] direction to [this way v] :: wedo
|Category||LEGO Education WeDo 2.0|
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.
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