31 July 2019
selection optional parameter.20 August 2015
data to the already existing shape if type is not specified.18 August 2015
Corrade can alter the shape of existing in-world primitives by using the setprimitiveshapedata command.
| Command | Required Parameters | Required Corrade Permissions | Example |
|---|---|---|---|
setprimitiveshapedata | group, password, item | interact | llInstantMessage(CORRADE, wasKeyValueEncode( [ // set the primitive named "Ball" // in a 2m range to a sphere shape "command", "setprimitiveshapedata", "group", wasURLEscape(GROUP), "password", wasURLEscape(PASSWORD), "item", "Ball", "range", 2, "type", "sphere" ] ) ); |
| Optional Parameter | Possible Value | Description |
|---|---|---|
range | A range in meters. | The spherical distance from Corrade in which to locate the item. |
data | A CSV list of members from the ConstructionData | The data to construct the primitive by. |
type | Please see the Corrade built-in body types. | The initial body to start from, after which the parameters in data get applied. If you do not supply this parameter then data will have default values. |
There are three cases depending on whether data or type are specified:
type is specified, the primitive shape will be altered to match the specified type.data is specified, then Corrade will read the current shape data from the primitive and then apply the parameters specified in data.type and data is specified, then Corrade will start off from the specified body type and then alter that body by setting its parameters to those specified in data.