PRIM_TYPE_BOX
integer PRIM_TYPE_BOX = 0;Constant groups
Other PrimType values (7)
PRIM_TYPE_BOX is a parameter of PRIM_TYPE used to make prim into a box and to change specific properties that define the shape of that box.
Caveats
Section titled “Caveats”- z_taper and client values are different, the ranges do not line up, conversion is required. This simple equation can be used:
answer = 1.0 - value. See top_size Explained for more information.
Examples
Section titled “Examples”Example 1
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_BOX, PRIM_HOLE_DEFAULT, // hole_shape <0.00, 1.0, 0.0>, // cut 0.0, // hollow <0.0, 0.0, 0.0>, // twist <1.0, 1.0, 0.0>, // top_size <0.0, 0.0, 0.0> // top_Shear ]);Deep notes
Section titled “Deep notes”| Range | Top Tapered | No Tapering | Bottom Tapered | |
|---|---|---|---|---|
| Client | [-1, 1] | 1.0 | 0.0 | -1.0 |
PRIM_TYPE | [0, 2] | 0.0 | 1.0 | 2.0 |
| LEGACY | [0, 1] | 0.0 | 1.0 | NA |
| Client < 1.11 | [0, 1] | 0.0 | 1.0 | NA |
When the original PRIM_TYPE interface was retired (PRIM_TYPE_LEGACY, SL 1.5), the new PRIM_TYPE interface did not yet support tapering of the bottom of the prim, this feature wasn’t added until SL 1.11 (two years later). Instead of retiring the new PRIM_TYPE when it was added, the range of top_size was enlarged; meanwhile in the client they redefined the parameter and it’s values. This redefinition and range enlargement resulted in two interfaces that did the same thing but achieved it through different values. Meanwhile PRIM_TYPE_LEGACY’s interface was not updated to support tapering of the bottom of the prim. Consequently all three interfaces have different ranges, making for a rather nasty caveat.
See also
Section titled “See also”Constants
Section titled “Constants”| Constant | Type | Value | Description |
|---|---|---|---|
PRIM_TYPE | |||
CHANGED_SHAPE |
Functions
Section titled “Functions”Events
Section titled “Events”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.