LlApplyImpulse/fr
Jump to navigation
Jump to search
| LSL Portail Francophone | LSL Portail Anglophone | Fonctions | Évènements | Types | Operateurs | Constantes | Contrôle d'exécution | Bibliothèque | Tutoriels |
Description
Fonction: llApplyImpulse( vector force, integer local );Avertissements
- L'objet doit être physique.
Exemples
<lsl> //Rezzez un objet et mettez le script dedans. default {
state_entry() {
list p = llGetObjectDetails(llGetOwner(), [OBJECT_POS]);
if(p != []) {
llSetStatus(STATUS_PHYSICS, TRUE);
vector pos = llList2Vector(p, 0);
vector direction = llVecNorm(pos - llGetPos());
llApplyImpulse(direction * 100, 0);
}
}
} </lsl>
Voir également
Fonctions
| • | llApplyRotationalImpulse | – | applique une mouvement rotatif à un objet |
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.