Get Primitive Physics Data

18 August 2015

  • Release 8.42 - added.
getprimitivephysicsdata (Commands)
TypeCorrade progressive command
Commandgetprimitivephysicsdata
DescriptionCorrade can query primitive physics details using the getprimitivephysicsdata command.
Permissionsinteract
Parametersgroup, password, item
Last ChangesRelease 8.42 - added.

Corrade can query primitive physics details using the getprimitivephysicsdata command.

Command Required Parameters Required Corrade Permissions Example
getprimitivephysicsdata group, password, item interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "getprimitivephysicsdata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "Sausage",
            // searches in a 5m range
            "range", "5",
            // returns the gravity multipler
            // and the density of the primitive
            "data", wasListToCSV(
                [
                    "GravityMultiplier",
                    "Density"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);

The data parameter follows the PhysicsProperties structure and sub-structures.

Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.

secondlife/scripted_agents/corrade/api/progressive/commands/getprimitivephysicsdata.txt ยท Last modified: 2017/02/22 18:29 (external edit)

Access website using Tor


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