RobotStatus GunHeadingRadians Property Robocode Robot API for .NET
Returns the direction that the robot's gun is facing, in radians. The value returned will be between 0 and 2 * PI (is excluded).

Note that the heading in Robocode is like a compass, where 0 means North, PI / 2 means East, PI means South, and 3 * PI / 2 means West.

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version:

public double GunHeadingRadians { get; }

Property Value

Type: OnlineDouble
See Also