RateControlRobot RadarRotationRateRadians Property Robocode Robot API for .NET
The radar's clockwise (right) rotation per turn, in radians.

This call returns immediately, and will not execute until you call Execute() or take an action that executes.

Note that both positive and negative values can be given as input, where negative values means that the radar turns counterclockwise (left)

Examples

// Set the radar to turn right pi / 4 radians per turn
RadarRotationRateRadians = Math.PI / 4;

// Set the radar to turn left pi / 8 radians per turn 
// (overrides the previous order)
RadarRotationRateRadians = -Math.PI / 8;

...
// Executes the last RadarRotationRateRadians
Execute();

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

public double RadarRotationRateRadians { get; set; }

Property Value

Type: OnlineDouble
See Also

RateControlRobot RadarRotationRateRadians