Difference between revisions of "LlRotateTexture/ja"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{multi-lang}}{{LSL_Function/face/ja|face}} {{LSL_Function/ja |func_id=56|func_sleep=0.2|func_energy=10.0 |func=llRotateTexture |p1_type=float|p1_name=rotation|p1_desc=ラジアンの角...)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{multi-lang}}{{LSL_Function/face/ja|face}}
{{LSL_Function/face/ja|face}}
{{LSL_Function/ja
{{LSL_Function/ja
|func_id=56|func_sleep=0.2|func_energy=10.0
|func_id=56|func_sleep=0.2|func_energy=10.0
|func=llRotateTexture
|func=llRotateTexture
|p1_type=float|p1_name=rotation|p1_desc=ラジアンの角度
|p1_type=float|p1_name=angle|p1_desc={{LSLG/ja|radians|ラジアン}} での角度
|p2_type=integer|p2_name=face
|p2_type=integer|p2_name=face
|func_footnote
|func_footnote
|func_desc=選択された'''face'''のテクスチャの回転を設定します。
|func_desc=選択された '''face''' のテクスチャの回転を '''angle''' に設定します。
|return_text
|return_text
|spec
|spec
|caveats
|caveats
|constants
|constants
|examples=<lsl>
|examples=<source lang="lsl2">
default
default
{
{
     touch_start(integer total_number) {
     touch_start(integer total_number) {
         // Makes the object's texture rotate a quarter of turn
         // オブジェクトのテクスチャを 1/4 回転します
         llRotateTexture(PI_BY_TWO, ALL_SIDES);
         llRotateTexture(PI_BY_TWO, ALL_SIDES);
     }
     }
}
}
</lsl>
</source>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llGetTextureRot/ja|llGetTextureRot]]|テクスチャの回転を取得します}}
|also_functions={{LSL DefineRow||{{LSLG/ja|llGetTextureRot}}|テクスチャの回転を取得します}}
{{LSL DefineRow||[[llSetTextureAnim/ja|llSetTextureAnim]]|テクスチャを動かします}}
{{LSL DefineRow||{{LSLG/ja|llSetTextureAnim}}|テクスチャを動かします}}
|also_tests
|also_tests
|also_events
|also_events
|also_articles
|also_articles
|notes=
|notes=
この関数は実際のテクスチャの位置付けで、一度だけ実行されます。アニメーションではありません。アニメーションに関しては[[llSetTextureAnim/ja|llSetTextureAnim]]を参照してください。
この関数はテクスチャの実際の方向を 1 度だけ設定します。アニメーションではありません。アニメーションに関しては {{LSLG/ja|llSetTextureAnim}} を参照してください。
|cat1=Face/ja
|cat1=Face
|cat2=Texture/ja
|cat2=Texture
|cat3
|cat3
|cat4
|cat4
}}
}}

Latest revision as of 06:40, 25 February 2016

要約

関数: llRotateTexture( float angle, integer face );

選択された face のテクスチャの回転を angle に設定します。

• float angle ラジアン での角度
• integer face 番号もしくは ALL_SIDES

faceALL_SIDES であれば関数は全ての面に作用します。

警告

  • この関数は 0.2 秒間、スクリプトを停止します。
  • face が存在しない面を指している場合、関数はエラーを出さずに復帰します。
All Issues ~ Search JIRA for related Bugs

サンプル

default
{
    touch_start(integer total_number) {
        // オブジェクトのテクスチャを 1/4 回転します
        llRotateTexture(PI_BY_TWO, ALL_SIDES);
    }
}

注意点

この関数はテクスチャの実際の方向を 1 度だけ設定します。アニメーションではありません。アニメーションに関しては llSetTextureAnim を参照してください。

関連項目

関数

•  llGetTextureRot テクスチャの回転を取得します
•  llSetTextureAnim テクスチャを動かします

特記事項

Search JIRA for related Issues

Signature

function void llRotateTexture( float angle, integer face );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。