Difference between revisions of "PRIM TYPE"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
<onlyinclude>{{#if: | <onlyinclude>{{#if: | ||
{{#vardefine:p_type_flag_desc|PRIM_TYPE_* flag}} | |||
{{#vardefine:p_type_parameters_desc|flag parameters}} | |||
{{#vardefine:p_hole_shape_desc|PRIM_HOLE_* flag}} | {{#vardefine:p_hole_shape_desc|PRIM_HOLE_* flag}} | ||
Line 8: | Line 11: | ||
{{#vardefine:p_hole_size_desc|x ranges from 0.05 to 1.0; y ranges from 0.05 (large hole) to 0.50 (no hole)}} | {{#vardefine:p_hole_size_desc|x ranges from 0.05 to 1.0; y ranges from 0.05 (large hole) to 0.50 (no hole)}} | ||
{{#vardefine:p_top_size_hover|ranges from 0.0 to 1.0 for both x and y (z is ignored); see Caveats about the differences between the client and scripting range for this value}} | {{#vardefine:p_top_size_hover|ranges from 0.0 to 1.0 for both x and y (z is ignored); see Caveats about the differences between the client and scripting range for this value}} | ||
{{#vardefine:p_top_size_desc|ranges from 0.0 to 1.0 for both x and y (z is ignored)[[#z_taper|<span style="color:red;">!</span>]]}} | {{#vardefine:p_top_size_desc|ranges from 0.0 to 1.0 for both x and y (z is ignored)[[#z_taper|<span style="color:red;" title="The values for in the client and scripting are different!">!</span>]]}} | ||
{{#vardefine:p_z_taper_hover|ranges from 0.0 to 2.0 for both x and y (z is ignored); see Caveats about the differences between the client and scripting range for this value}} | {{#vardefine:p_z_taper_hover|ranges from 0.0 to 2.0 for both x and y (z is ignored); see Caveats about the differences between the client and scripting range for this value}} | ||
{{#vardefine:p_z_taper_desc|ranges from 0.0 to 2.0 for both x and y (z is ignored)[[#z_taper|<span style="color:red;">!</span>]]}} | {{#vardefine:p_z_taper_desc|ranges from 0.0 to 2.0 for both x and y (z is ignored)[[#z_taper|<span style="color:red;" title="The values for in the client and scripting are different!">!</span>]]}} | ||
{{#vardefine:p_top_shear_desc|ranges from -0.5 to 0.5 for both x and y (z is ignored)}} | {{#vardefine:p_top_shear_desc|ranges from -0.5 to 0.5 for both x and y (z is ignored)}} | ||
{{#vardefine:p_taper_desc|ranges from -1.0 to 1.0 for both x and y (z is ignored)}} | {{#vardefine:p_taper_desc|ranges from -1.0 to 1.0 for both x and y (z is ignored)}} | ||
Line 21: | Line 24: | ||
{{#vardefine:p_hole_size_y_desc|ranges from 0.05 (large hole) to 0.50 (no hole)}} | {{#vardefine:p_hole_size_y_desc|ranges from 0.05 (large hole) to 0.50 (no hole)}} | ||
{{#vardefine:p_topshear_x_desc|ranges from 0.05 to 0.50}} | {{#vardefine:p_topshear_x_desc|ranges from 0.05 to 0.50}} | ||
{{#vardefine:type_const|{{LSL Const|PRIM_TYPE|integer|9|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the the type of prim.}}}} | |||
}}</onlyinclude>{{#if: | }}</onlyinclude>{{#if: | ||
Line 30: | Line 35: | ||
|desc=Gets or sets the type of the prim | |desc=Gets or sets the type of the prim | ||
|examples | |examples | ||
|pa={{LSL Constant/List|i_front=[ {{#var:type_const}}, |i_end= ] + [flag_parameters | |||
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]] | |||
|toc=llSetPrimitiveParams | |||
|i1_type=integer|i1_name=type | |||
}} | |||
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:type_const}}|i_end= ]);| | |||
|r_front=Returns the list [ |r_end= ] | |||
|text | |||
|toc=llGetPrimitiveParams | |||
|r1_type=integer|r1_name=type | |||
}} | |||
|constants= | |constants= | ||
{{LSL ConstRow|PRIM_TYPE_BOX}} | {{LSL ConstRow|PRIM_TYPE_BOX}} |
Revision as of 15:16, 16 March 2009
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_TYPE = 9;The integer constant PRIM_TYPE has the value 9
Gets or sets the type of the prim
llSetPrimitiveParams
[ PRIM_TYPE, integer type ] + [flag_parameters• integer | type |
When used with llSetPrimitiveParams & llSetLinkPrimitiveParams
llGetPrimitiveParams
llGetPrimitiveParams([ PRIM_TYPE ]);Returns the list [ integer type ]
• integer | type |
Caveats
Related Articles
Constants
• | PRIM_TYPE_BOX | |||
• | PRIM_TYPE_CYLINDER | |||
• | PRIM_TYPE_PRISM | |||
• | PRIM_TYPE_SPHERE | |||
• | PRIM_TYPE_TORUS | |||
• | PRIM_TYPE_TUBE | |||
• | PRIM_TYPE_RING | |||
• | PRIM_TYPE_SCULPT | |||
• | CHANGED_SHAPE |
Functions
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams |
Events
• | changed |