Connections 2
Mass 0.5*2
Dimensions 1x1x1
Restitution 0.5
Friction 1

(Inherits from bot part)

Used to create rotatable junctions.

Input/Output Description Data Type
>angle Sets the angle of the motor decimal
>velocity Sets the speed of a constant rotation decimal
<angle Gets the actual angle decimal

Usage Edit

Motors behave similarly to elbows, the key difference being their unrestricted movement, or with other words, to rotate continuously through a full 360 degrees.

If no >angle or >velocity is set, the motor will move freely.

Setting an >angle will cause the motor to try and bend to an absolute angle from -180 degrees to +180 degrees. 

However, motors appear to operate on an internal controller to reach a set >angle. In earlier releases, that control may not provide enough torque to rotate under heavier loads. In this case, an external controller has been a good solution to modify the >angle value until the effective <angle reached the desired one.

Setting >velocity will cause the motor to try and rotate at the given value in degrees per second.

The motor can also be used to measure angles by reading <angle.