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

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)


// Set the radar to turn right 45 degrees per turn
RadarRotationRate = 45;

// Set the radar to turn left 15 degrees per turn 
// (overrides the previous order)
RadarRotationRate = -15;

// Executes the last RadarRotationRate

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

public double RadarRotationRate { get; set; }

Property Value

Type: OnlineDouble
See Also

RateControlRobot RadarRotationRate