AdvancedRobot SetTurnRadarLeftRadians Method Robocode Robot API for .NET
Sets the robot's radar to turn left by radians when the next execution takes place.

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 robot's radar is set to turn right instead of left.

Examples

// Set the radar to turn 180 degrees to the left
SetTurnRadarLeftRadians(Math.PI);

// Set the radar to turn 90 degrees to the right instead of left 
// (overrides the previous order)
SetTurnRadarLeftRadians(-Math.PI / 2);

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

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

public void SetTurnRadarLeftRadians(
	double radians
)

Parameters

radians
Type: OnlineSystem Double
the amount of radians to turn the robot's radar to the left. If radians > 0 the robot's radar is set to turn left. If radians < 0 the robot's radar is set to turn right. If radians = 0 the robot's radar is set to stop turning.
See Also