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. // Cela le lancera au propriétaire 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 | |||
| • | llSetForce | – | Applique une force continue |
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.