Motor () Position
(motor [ v] position::extension reporter)
Category Boost
Type Reporter
Introduced in 3.0
This article is about the LEGO Boost block. For the EV3 block, see Motor () Position (EV3 block).


Document stub.png This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (January 2020)

The Motor () Position block is a Reporter Block in the LEGO Boost Extension that reports the degree that the selected motor is currently positioned at.

Example Uses

  • Constantly point in the direction of a motor
when gf clicked
forever
point in direction (motor [a v] position :: extension)
  • Detect when a motor is exactly facing a certain direction
when gf clicked
forever
if <(motor [a v] position :: extension) = [90]> then
say [Spot on!]
end
  • Create a chase game, where tilting the motor is the main mechanic
when gf clicked
forever
point in direction (motor [a v] position :: extension)
move (10) steps