Translations of this page:
  • English (USA)

This is an old revision of the document!


edit variables for your needs ,
put it in a prim, and touch it…
still needs some edits (insert TABs), but can be helpful ;)

// change this to your needs
integer dots=24;
integer radius=7;
integer height=54;
integer pause=0;
integer mid_x=188;
integer mid_y=148;

// only change if you know what you do...
integer i;
integer x;
integer y;
float angel; 


default
{
    state_entry()
    {
        angel = 2*PI/dots;
        
        llSay(0, "Hello, Avatar!");
    }

    touch_start(integer total_number)
    {
       for (i=0;i<dots;i++)
       {
            float xKoord = llCos(i*angel) *radius + mid_x;
            float yKoord = llSin(i*angel) *radius + mid_y;
            llOwnerSay("move" + (string)llRound(xKoord) + "," + (string)llRound(yKoord) + "," + (string)height + "\npause" + (string)pause);
        }
           
    }
}
topics/circle_koords_in_robots.1249401315.txt.gz · Last modified: 2009/08/04 17:55 by rebekka
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0