HitByBulletEvent HeadingRadians Property Robocode Robot API for .NET
Returns the heading of the bullet when it hit you, in radians (0 <= getHeadingRadians() < 2 * PI).

Note: This is not relative to the direction you are facing. The robot that fired the bullet was in the opposite direction of getHeadingRadians() when it fired the bullet.

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

public double HeadingRadians { get; }

Property Value

Type: OnlineDouble
See Also