Difference between revisions of "PRIM TYPE RING/fr"
Gally Young (talk | contribs) (Localized to french) |
Gally Young (talk | contribs) m (Proofread) |
||
Line 5: | Line 5: | ||
|type=integer | |type=integer | ||
|value=6 | |value=6 | ||
|desc=PRIM_TYPE_RING est un paramètre de [[PRIM_TYPE/fr|PRIM_TYPE]] utilisé pour appliquer une forme | |desc=PRIM_TYPE_RING est un paramètre de [[PRIM_TYPE/fr|PRIM_TYPE]] utilisé pour appliquer une forme d'anneau à une prim (et lui donner des paramètres spécifiques). | ||
|pa={{LSL Constant/List/fr|i_front=[ {{LSL_Const/fr|PRIM_TYPE|integer|9}}, [[PRIM_TYPE_RING/fr|PRIM_TYPE_RING]], |i_end= ] | |pa={{LSL Constant/List/fr|i_front=[ {{LSL_Const/fr|PRIM_TYPE|integer|9}}, [[PRIM_TYPE_RING/fr|PRIM_TYPE_RING]], |i_end= ] | ||
|text={{LSL_Constants/PrimitiveParams/hole_shape/fr}} | |text={{LSL_Constants/PrimitiveParams/hole_shape/fr}} |
Revision as of 12:18, 20 June 2008
LSL Portail Francophone | LSL Portail Anglophone | Fonctions | Évènements | Types | Operateurs | Constantes | Contrôle d'exécution | Bibliothèque | Tutoriels |
Description
Constante: integer PRIM_TYPE_RING = 6;La constante PRIM_TYPE_RING de type integer a la valeur 6
PRIM_TYPE_RING est un paramètre de PRIM_TYPE utilisé pour appliquer une forme d'anneau à une prim (et lui donner des paramètres spécifiques).
PRIM_TYPE
[ PRIM_TYPE, PRIM_TYPE_RING, integer forme_du_trou, vector découpe, float creux, vector torsion, vector taille_du_trou, vector translation_des_faces, vector advanced_cut, vector écart_taille_disque, float angle_décalage, float inclinaison ]• integer | forme_du_trou | |||
• vector | découpe | |||
• float | creux | |||
• vector | torsion | |||
• vector | taille_du_trou | |||
• vector | translation_des_faces | |||
• vector | advanced_cut | |||
• vector | écart_taille_disque | |||
• float | angle_décalage | |||
• float | inclinaison |
hole_shape Code | Forme | hole_shape Code | Forme | ||
---|---|---|---|---|---|
PRIM_HOLE_DEFAULT | 0x00 | Par défaut | PRIM_HOLE_SQUARE | 0x20 | Carré |
PRIM_HOLE_CIRCLE | 0x10 | Cercle | PRIM_HOLE_TRIANGLE | 0x30 | Triangle |
Articles connexes
Constantes
• | PRIM_TYPE | |||
• | CHANGED_SHAPE |
Fonctions
• | llSetPrimitiveParams | – | Change les paramètres d’une prim | |
• | llSetLinkPrimitiveParams | – | Change les paramètres d’une prim liée | |
• | llGetPrimitiveParams | – | Renvoie les paramètres d’une prim |
Evénement
• | changed | – | Evènement déclenché par une modification de la prim |
Exemples
<lsl>// réalise une spirale float creux= 0.0; // 0.0 to 0.95 vector torsion= <0, 0.0, 0.0>; // -1.0 to 1.0 vector taille_trou= <1.0, 0.05, 0.0>; // max X:1.0 Y:0.5 vector translation_des_faces= <0.0, 0.0, 0.0>; // -0.5 to 0.5 vector coupe_profil= <0.0, 0.0, 0.0>; // 0.0 to 1.0 vector écart_taille_disque = <0.0, 0.0, 0.0>; // 0.0 to 1.0 float revolutions = 3.0; // 1.0 to 4.0 float angle_decalage= 1.0; // -1.0 to 1.0 float inclinaison= 0.0; // llSetPrimitiveParams( [PRIM_TYPE, PRIM_TYPE_RING, PRIM_HOLE_DEFAULT,
cut, creux, torsion, taille_trou, translation_des_faces, coupe_profile, écart_taille_disque, revolutions, angle_decalage, inclinaison] );</lsl>