Difference between revisions of "PRIM TYPE CYLINDER"
Jump to navigation
Jump to search
m |
(my first Wiki creation. :)) |
||
Line 1: | Line 1: | ||
==(integer) PRIM_TYPE_CYLINDER = 0x01== | |||
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.Each vector parameter below only uses the first two values in the vector, the .z part is irrelevant currently. | |||
[ PRIM_TYPE, [[integer]] hole_shape, [[vector]] cut, [[float]] hollow, [[vector]] twist, [[vector]] top_size, [[vector]] top_shear ] | |||
{| border="1" cellpadding="5" cellspacing="0" | |||
| | |hole_shape | ||
|Constants | |||
| | |Shape | ||
| | |- | ||
| | |PRIM_HOLE_DEFAULT | ||
| | |0x00 | ||
| | |Default | ||
| | |- | ||
|PRIM_HOLE_SQUARE | |||
| | |0x20 | ||
| | |Square | ||
| | |- | ||
| | |PRIM_HOLE_CIRCLE | ||
|0x10 | |||
|Circle | |||
|- | |||
|PRIM_HOLE_TRIANGLE | |||
|0x30 | |||
|Triangle | |||
< | |} | ||
===example=== | |||
---- | |||
<pre> | |||
llSetPrimitiveParams([PRIM_TYPE, | |||
PRIM_TYPE_CYLINDER, | PRIM_TYPE_CYLINDER, | ||
PRIM_HOLE_DEFAULT, | PRIM_HOLE_DEFAULT, | ||
<0.00, 1.0, 0.0>, // cut | <0.00, 1.0, 0.0>, // cut | ||
0.0, // hollow | 0.0, // hollow | ||
<0.0, 0.0, 0.0>, // twist | <0.0, 0.0, 0.0>, // twist | ||
<1.0, 1.0, 0.0>, // | <1.0, 1.0, 0.0>, // top size | ||
<0.0, 0.0, 0.0> // | <0.0, 0.0, 0.0> // top Shear | ||
]);</ | ]); | ||
</pre> | |||
===See Also=== | |||
---- | |||
[[llSetPrimitiveParams]] [[llGetPrimitiveParams]] [[llSetLinkPrimitiveParams]] | |||
Revision as of 04:46, 17 May 2007
(integer) PRIM_TYPE_CYLINDER = 0x01
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.Each vector parameter below only uses the first two values in the vector, the .z part is irrelevant currently.
[ PRIM_TYPE, integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ]
hole_shape | Constants | Shape |
PRIM_HOLE_DEFAULT | 0x00 | Default |
PRIM_HOLE_SQUARE | 0x20 | Square |
PRIM_HOLE_CIRCLE | 0x10 | Circle |
PRIM_HOLE_TRIANGLE | 0x30 | Triangle |
example
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_CYLINDER, PRIM_HOLE_DEFAULT, <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
llSetPrimitiveParams llGetPrimitiveParams llSetLinkPrimitiveParams