LlGetTextureRot/ja

From Second Life Wiki

Jump to: navigation, search

関数: float llGetTextureRot( integer side );

sideのテクスチャの回転のfloat値を返します。

• integer side の番号あるいはALL_SIDES


もしsideの値がALL_SIDESなら、関数は全側面に作用します。

警告

  • 関数はsideの値が示す面が存在しない場合、 エラーを返しません

//Tells the owner the texture rotation on all sides
default
{
    state_entry()
    {
        integer i = 0;
        integer max = llGetNumberOfSides();
        while(i < max)
        {
            llSay(0,"Face "+(string)i+" texture rotation is " + (string)llGetTextureRot(i));
            ++i;
        }
    }
}

関連項目

関数

•  llRotateTexture
•  llGetNumberOfSides
Personal tools