Compass

De DigiWiki.

// Compass v0.1 by djphil (CC-BY-NC-SA)
 
default
{
    state_entry() {llSetTimerEvent(5.0);}
    timer() {llSetRot(llRotBetween(<-1.0, 0.0, 0.0>, llWind(ZERO_VECTOR)));}
}
// Weathercock v0.1 by djphil (CC-BY-NC-SA)
 
string a;
string b;
 
default
{
    state_entry()
    {        
        a = "<-1.0, 0.0, 0.0, 0.0>";
        llSetTimerEvent(5.0);   
    }
 
    timer()
    {
        b = (string) llWind(ZERO_VECTOR);
        rotation rot = llRotBetween(a, b);
        llSetRot(rot);
    }
}
Outils personnels
  • Cette page a été consultée 855 fois.
donate
Google Ads