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

From Second Life Wiki
Jump to navigation Jump to search
Strife Onizuka (talk | contribs)
No edit summary
 
Strife Onizuka (talk | contribs)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{LSL_Constants/PrimitiveParams}}}}{{User:Strife_Onizuka/Sandbox/Const
|name=PRIM_TYPE_CYLINDER
|type=integer
|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.


[ [[PRIM_TYPE]], [[PRIM_TYPE_CYLINDER]], [[integer]] {{LSL Param|hole_shape}}, [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[vector]] {{LSL Param|twist_box|twist}}, [[vector]] {{LSL Param|top_size}}, [[vector]] {{LSL Param|top_shear}} ]
{{{!}}
{{LSL DefineRow|integer|hole_shape|{{#var:p_hole_shape_desc}}}}
{{LSL DefineRow|vector|cut|{{#var:p_cut_desc}}}}
{{LSL DefineRow|float|hollow|{{#var:p_hollow_desc}}}}
{{LSL DefineRow|vector|twist|{{#var:p_twist_box_desc}}}}
{{LSL DefineRow|vector|top_size|{{#var:p_top_size_desc}}}}
{{LSL DefineRow|vector|top_shear|{{#var:p_top_shear_desc}}}}
{{!}}}
{{LSL_Constants/PrimitiveParams/hole_shape}}
|examples=
<pre>
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
                      ]);
</pre>
|constants=
{{LSL DefineRow||[[PRIM_TYPE]]|}}
{{LSL DefineRow||[[CHANGED_SHAPE]]|}}
|functions=
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
|events=
{{LSL DefineRow||[[changed]]|}}
|location
|cat1=Prim
|cat2
|cat3
|cat4
}}

Latest revision as of 15:38, 17 December 2010