PRIM_TYPE_TORUS
constant
Constant
integer PRIM_TYPE_TORUS = 4;Constant groups
Other PrimType values (7)
PRIM_TYPE_TORUS is a parameter of PRIM_TYPE used to make prim into a torus and to change specific properties that define the shape of that torus.
Examples
Section titled “Examples”Example 1
// this makes a nice expanding spiralvector cut= <0.00000, 1.00000, 0.00000>;float hollow = 0.0; // 0.0 to 0.95vector twist = <0, 0.0, 0.0>; // -1.0 to 1.0vector holesize = <1.0, 0.05, 0.0>; // max X:1.0 Y:0.5vector topshear = <0.0, 0.0, 0.0>; // -0.5 to 0.5vector profilecut = <0.0, 0.0, 0.0>; // 0.0 to 1.0vector taper_a = <0.0, 0.0, 0.0>; // 0.0 to 1.0float revolutions = 3.0; // 1.0 to 4.0float radiusoffset = 1.0; // -1.0 to 1.0float skew = 0.0; //llSetPrimitiveParams( [PRIM_TYPE, PRIM_TYPE_TORUS, PRIM_HOLE_DEFAULT, cut, hollow, twist, holesize, topshear, profilecut, taper_a, revolutions, radiusoffset, skew] );See also
Section titled “See also”Constants
Section titled “Constants”| Constant | Type | Value | Description |
|---|---|---|---|
PRIM_TYPE | |||
CHANGED_SHAPE |
Functions
Section titled “Functions”Events
Section titled “Events”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.