_bodyaim


Value Type

numeric  [0-359]

Description

Current angle of a robot's body. Values are in degrees ranging from 0 to 359 inclusive. A _bodyaim of 0 is towards the top of the arena, or map north. This value is changed by rotation commands.

When a robot is sliding, the value of _bodyaim may not be the same as its movement direction. To determine the direction a robot is moving, use the _heading variable.

See arena attributes for a description of angles.

See Also

bodyleft, bodyright, _gunaim, _radaraim, _heading