bodyright( degrees )


Parameters

  Type Description
degrees numeric amount to rotate

_result

Not set.

Descriptions

Rotates a robot's body clockwise the amount specified by degrees. Negative values cause counter-clockwise rotation. The rotation rate of a robot's body is ±5 degrees per turn relative to the ground. See the robot attributes topic for more information about rotation rates.

After calling the bodyright command, you can determine the amount of rotation remaining using the _bodyrmn system variable. When any component of a robot is rotating, the _rotating system variable is true. Bodyright generally requires multiple turns to complete and therefore causing blocking.

See Also

bodyleft, gunleft, gunright, radarleft, radarright, stop, stoprotate, blocking, _bodyrmn, _rotating