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.
turn (Commands)
TypeCorrade progressive command
Commandturn
DescriptionThe turn command can be used to turn (yaw) Corrade around.
Permissionsmovement
Parametersgroup, password, direction, radians
Last ChangesRelease 9.158 - changed parameter from degrees to radians.

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.

secondlife/scripted_agents/corrade/api/commands/turn.txt ยท Last modified: 2022/11/24 07:46 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.