Difference between revisions of "PRIM SIZE"

From Second Life Wiki
Jump to navigation Jump to search
Line 25: Line 25:
|examples=
|examples=


Use thePRIM_SIZE and ad an (,) after that the size you want.  
Use the PRIM_SIZE exemple  
<lsl>
<lsl>


//MathieuBC Noel scripter
//MathieuBC Noel scripter
touch_start(integer total_number)
  default
{
{
      
      
        llSetPos( llGetScale( )+ llGetPos() + <0,0,-1>);
    touch_start(integer total_number)
    {
          
          
        llGetPrimitiveParams([ PRIM_SIZE, <1.148,0.081,0.313> ]);  
llSetPrimitiveParams([PRIM_TYPE,
        }
                        PRIM_TYPE_BOX,
     
                                PRIM_HOLE_SQUARE  ,           // hole_shape
       
                           
 
                            <0.00, 1.0, 0.0>,  // cut
                                95,                    // hollow
                            <180.0, 0.0, 0.0>,    // twist
                            <-0, .0, 1.0>,    // top_size
                            <0.0, 0.0, 0.0> ,    // top_Shear
                          PRIM_SIZE ,<0.669,0.726,10.368>, PRIM_ROTATION, <1,0,0,0> ]);
     }
     }
} </lsl>  
} </lsl>  
== Canevas ==
-The prim_size don't work alone as the llSetScale. You must add the prim_size in the code line of a spécific primitive you set.


|constants=
|constants=

Revision as of 11:43, 6 December 2008

Description

Constant: integer PRIM_SIZE = 7;

The integer constant PRIM_SIZE has the value 7

Returns or sets the prim's size.

llSetPrimitiveParams

[ PRIM_SIZE, vector size ]
• vector size ranges from 0.01 to 10.0 for x, y and z

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_SIZE ]);

Returns the list [ vector size ]

• vector size ranges from 0.01 to 10.0 for x, y and z

Related Articles

Examples

Use the PRIM_SIZE exemple <lsl>

//MathieuBC Noel scripter

 default

{

   touch_start(integer total_number)
   {

       
llSetPrimitiveParams([PRIM_TYPE, 
                       PRIM_TYPE_BOX, 
                               PRIM_HOLE_SQUARE  ,           // hole_shape
                           
                           <0.00, 1.0, 0.0>,   // cut
                               95,                    // hollow
                           <180.0, 0.0, 0.0>,    // twist
                           <-0, .0, 1.0>,    // top_size
                           <0.0, 0.0, 0.0> ,    // top_Shear
                         PRIM_SIZE ,<0.669,0.726,10.368>, PRIM_ROTATION, <1,0,0,0> ]);

   }

} </lsl>

Canevas

-The prim_size don't work alone as the llSetScale. You must add the prim_size in the code line of a spécific primitive you set.

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_SIZE = 7;