Difference between revisions of "PRIM SLICE"
Jump to navigation
Jump to search
Tomos Halsey (talk | contribs) |
m (<lsl> tag to <source>) |
||
Line 25: | Line 25: | ||
}} | }} | ||
|examples= | |examples= | ||
< | <source lang="lsl2"> | ||
//updated findings show the difference can be as small as 0.02 not 0.05 (Tomos.Halsey) | //updated findings show the difference can be as small as 0.02 not 0.05 (Tomos.Halsey) | ||
default | default | ||
Line 34: | Line 34: | ||
} | } | ||
} | } | ||
</ | </source> | ||
|constants= | |constants= | ||
|functions= | |functions= |
Latest revision as of 15:56, 23 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_SLICE = 35;The integer constant PRIM_SLICE has the value 35
Used to get or set the prim's slice values (a shape attribute, equivalent to advanced_cut).
llSetPrimitiveParams
llSetPrimitiveParams([ PRIM_SLICE, vector slice ]);• vector | slice | – | x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored) |
The same syntax applies to llSetLinkPrimitiveParams and llSetLinkPrimitiveParamsFast but with an additional prefixed link parameter in the function call.
llGetPrimitiveParams
llGetPrimitiveParams([ PRIM_SLICE ]);Returns the list [ vector slice ]
• vector | slice | – | x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored) |
The same syntax applies to llGetLinkPrimitiveParams, but with an additional prefixed link parameter in the function call.
Caveats
Related Articles
Examples
//updated findings show the difference can be as small as 0.02 not 0.05 (Tomos.Halsey)
default
{
state_entry()
{
llSetLinkPrimitiveParams(LINK_THIS,[PRIM_SLICE,<0.0,0.02,0.0>]);
}
}