User:Strife Onizuka/Sandbox/Switch/Const/Test: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Strife Onizuka (talk | contribs)
mNo edit summary
Strife Onizuka (talk | contribs)
No edit summary
Line 1: Line 1:
{{#if:{{LSL_Constants/PrimitiveParams}}
{{#if:{{LSL_Constants/PrimitiveParams}}
{{#vardefine:p1_type|integer}}{{#vardefine:p1_name|hole_shape}}
{{#vardefine:pa1_type|integer}}{{#vardefine:pa1_name|hole_shape}}
{{#vardefine:p2_type|vector}}{{#vardefine:p2_name|cut}}
{{#vardefine:pa2_type|vector}}{{#vardefine:pa2_name|cut}}
{{#vardefine:p3_type|float}} {{#vardefine:p3_name|hollow}}
{{#vardefine:pa3_type|float}} {{#vardefine:pa3_name|hollow}}
{{#vardefine:p4_type|vector}}{{#vardefine:p4_name|twist_box}}{{#vardefine:p4_disp|twist}}
{{#vardefine:pa4_type|vector}}{{#vardefine:pa4_name|twist_box}}{{#vardefine:pa4_disp|twist}}
{{#vardefine:p5_type|vector}}{{#vardefine:p5_name|top_size}}
{{#vardefine:pa5_type|vector}}{{#vardefine:pa5_name|top_size}}
{{#vardefine:p6_type|vector}}{{#vardefine:p6_name|top_shear}}
{{#vardefine:pa6_type|vector}}{{#vardefine:pa6_name|top_shear}}
}}{{User:Strife_Onizuka/Sandbox/Const
}}{{User:Strife_Onizuka/Sandbox/Const
|name=PRIM_TYPE_CYLINDER
|name=PRIM_TYPE_CYLINDER
Line 11: Line 11:
|value=1
|value=1
|desc=PRIM_TYPE_CYLINDER is a parameter of [[PRIM_TYPE]] used to make prim into a cylinder and to change specific proprieties that define the shape of that cylinder.
|desc=PRIM_TYPE_CYLINDER is a parameter of [[PRIM_TYPE]] used to make prim into a cylinder and to change specific proprieties that define the shape of that cylinder.
|p_front=[ [[PRIM_TYPE]],
|pa_front=[ [[PRIM_TYPE]],
|p_mid=, 
|pa_mid=, 
|p_end= ]
|pa_end= ]
|p_text=
|pa_text=
{{LSL_Constants/PrimitiveParams/hole_shape}}
{{LSL_Constants/PrimitiveParams/hole_shape}}
|examples=
|examples=

Revision as of 18:25, 17 May 2007

integer PRIM_TYPE_CYLINDER = 1;

The integer constant PRIM_TYPE_CYLINDER has the value 1

PRIM_TYPE_CYLINDER is a parameter of PRIM_TYPE used to make prim into a cylinder and to change specific proprieties that define the shape of that cylinder.

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

• integer hole_shape
• vector cut
• float hollow
• vector twist
• vector top_size
• vector top_shear
hole_shape Flags Shape hole_shape Flags Shape
PRIM_HOLE_DEFAULT 0x00 Default PRIM_HOLE_SQUARE 0x20 Square
PRIM_HOLE_CIRCLE 0x10 Circle PRIM_HOLE_TRIANGLE 0x30 Triangle

Functions and Events

Constants

•  PRIM_TYPE
•  CHANGED_SHAPE

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Examples

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