Difference between revisions of "PRIM TYPE TORUS/fr"
Gally Young (talk | contribs) (Localized to french) |
(No difference)
|
Revision as of 12:42, 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_TORUS = 4;La constante PRIM_TYPE_TORUS de type integer a la valeur 4
PRIM_TYPE_TORUS est un paramètre de PRIM_TYPE utilisé pour appliquer une forme de tore à une prim (et lui donner des paramètres spécifiques).
PRIM_TYPE
[ PRIM_TYPE, PRIM_TYPE_TORUS, integer forme_du_trou, vector découpe, float creux, vector torsion, vector taille_du_trou, vector translation_des_faces, vector découpe avancée, 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 | découpe avancée | |||
• 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 |
PRIM_TYPE_LEGACY
[ 1, PRIM_TYPE_TORUS, vector découpe, float creux, float fin_de_torsion, float taille_du_trou_y, vector translation_des_faces, vector découpe avancée ]• vector | découpe | |||
• float | creux | |||
• float | fin_de_torsion | |||
• float | taille_du_trou_y | |||
• vector | translation_des_faces | |||
• vector | découpe avancée |
Il s'agit de l'ancien format de PRIM_TYPE pour les tores (PRIM_TYPE valait 1 au lieu de 9). Utilisez le nouveau format à moins que vous assuriez la maintenance d'un vieux code.
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>// fait une jolie spirale float hollow = 0.0; // 0.0 to 0.95 vector twist = <0, 0.0, 0.0>; // -1.0 to 1.0 vector holesize = <1.0, 0.05, 0.0>; // max X:1.0 Y:0.5 vector topshear = <0.0, 0.0, 0.0>; // -0.5 to 0.5 vector profilecut = <0.0, 0.0, 0.0>; // 0.0 to 1.0 vector taper_a = <0.0, 0.0, 0.0>; // 0.0 to 1.0 float revolutions = 3.0; // 1.0 to 4.0 float radiusoffset = 1.0; // -1.0 to 1.0 float skew = 0.0; // llSetPrimitiveParams( [PRIM_TYPE, PRIM_TYPE_TORUS, PRIM_HOLE_DEFAULT,
cut, hollow, twist, holesize, topshear, profilecut, taper_a, revolutions, radiusoffset, skew] );</lsl>