Difference between revisions of "LlGetPos/fr"

From Second Life Wiki
Jump to navigation Jump to search
m (Saving with no change)
m (Robot: <pre> -> <lsl>)
 
Line 9: Line 9:
|caveats
|caveats
|constants
|constants
|examples=<pre>
|examples=<lsl>
default
default
{
{
Line 22: Line 22:
     }
     }
}
}
</pre>
</lsl>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llGetLocalPos/fr|llGetLocalPos]]| Renvoie la position de la prim dans un  [[Viewer coordinate frames/fr#Local|référentiel local]].}}
|also_functions={{LSL DefineRow||[[llGetLocalPos/fr|llGetLocalPos]]| Renvoie la position de la prim dans un  [[Viewer coordinate frames/fr#Local|référentiel local]].}}

Latest revision as of 20:18, 4 August 2009

Description

Fonction: vector llGetPos( );

Renvoie un vector correspondant à la position de la prim dans le référentiel régional.


Exemples

<lsl> default {

   touch_start(integer total_number)
   {
       // quand la prim est touchée, controle la position
       // de l’objet et l’enregistre dans "position",
       // puis la convertit en string
       // et la dit sur le canal public (say)
       vector position = llGetPos();
       llSay(0, (string) position);
   }

} </lsl>

Voir également

Fonctions

•  llGetLocalPos Renvoie la position de la prim dans un référentiel local.
•  llSetPos Change la position de la prim
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.