Turn

4 March 2017

  • Release 9.158 - changed parameter from degrees to radians.

25 March 2016

  • Release 9.53 - changed parameter from angles to degrees

23 March 2016

  • Release 9.52 - added.

<data Commands> Type: Corrade progressive command Command[wiki]: turn Description[wiki]: The turn command can be used to turn (yaw) Corrade around. Permissions[wiki]: movement Parameters[wiki]: group, password, direction, radians Last Changes[wiki]: Release 9.158 - changed parameter from degrees to radians. </data>

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.

Command Required Parameters Required Corrade Permissions Example
turn group, password, direction, radians movement
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
        ]
    )
);
Parameter Possible Value Description
direction left Direction on which to move (in a local frame).
right
radians Radians The angle in radians to turn Corrade around.