|Motor () Position|
motor ( v) position::boost
The motor () position block is a reporter block and a LEGO BOOST block. It returns the degree that the selected motor is currently positioned at.
- Constantly point in the direction of a motor
when green flag clicked forever point in direction (motor (a v) position :: boost) end
- Detect when a motor is exactly facing a certain direction
when green flag clicked forever if <(motor (a v) position :: boost) = > then say [Spot on!] end end
- Create a chase game, where tilting the motor is the main mechanic
when green flag clicked forever point in direction (motor (a v) position ::Boost) move (10) steps end
LEGO BOOST Extension
The Wiki is working on a dark theme, and you're seeing it! Got feedback? Post on the Wiki Forum Topic.