Skip to content

PRIM TYPE PRISM

Looking for the current API? Open the PRIM_TYPE_PRISM reference →

Wiki description

PRIM_TYPE_PRISM is a parameter of PRIM_TYPE used to make prim into a prism and to change specific properties that define the shape of that prism.

Usage

[ PRIM_TYPE, PRIM_TYPE_PRISM, integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ]

PRIM_HOLE_DEFAULT integer hex=0x00 ihex=0 c=Default m=3
PRIM_HOLE_SQUARE integer hex=0x20 ihex=32 c=Square m=3
PRIM_HOLE_CIRCLE integer hex=0x10 ihex=16 c=Circle m=3
PRIM_HOLE_TRIANGLE integer hex=0x30 ihex=48 c=Triangle m=3
hole_shape Flags Shape hole_shape Flags Shape

[ 1, PRIM_TYPE_PRISM, vector cut, float hollow, float twist, vector top_size, vector top_shear ]

This is the old PRIM_TYPE format for prisms (PRIM_TYPE used to be 1 instead of 9). Use the new format unless you are maintaining old code.

Examples

llSetPrimitiveParams([PRIM_TYPE, 
                        PRIM_TYPE_PRISM, 
                            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
                      ]);

See also: constants

See also: functions

See also: 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.