LlDetectedTouchNormal

De DigiWiki.

default
{
    touch_start(integer total_num)
    {
        llOwnerSay((string)llDetectedTouchNormal(0)); //Says the vector where the touched face is pointing to.
    }
}

Useful Snippets

touch_start(integer total_number){
    // rotates the prim, so the touched position points upwards
    llSetRot(llGetRot()*llRotBetween(llDetectedTouchNormal(0),<0,0,1>));
}
Outils personnels
  • Cette page a été consultée 431 fois.
donate
Google Ads