4 March 2017

25 March 2016

23 March 2016

The turn command is meant to turn Corrade around (either with a clockwise (right) or a counter-clockwise (left) rotation) given an angle measured in degrees.

CommandRequired ParametersRequired Corrade PermissionsExample
turngroup, password, direction, radiansmovement
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // turn Corrade anti-clockwise 45 degrees.
            "command", "turn",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // Reads as: turn around counter-
            // clockwise 30 degrees.
            "direction", "left",
            "radians", 30 * DEG_TO_RAD
        ]
    )
);
ParameterPossible ValueDescription
directionleftDirection on which to move (in a local frame).
right
radiansRadiansThe angle in radians to turn Corrade around.