LlSetLocalRot/ja: Difference between revisions
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) New page: {{LSL Function/ja |func_id=284|func_sleep=0.2|func_energy=10.0 |func=llSetLocalRot |p1_type=rotation|p1_name=rot|p1_desc |func_desc=ルートプリムに相対的な、子プリムの回... |
Mako Nozaki (talk | contribs) m カテゴリ変更 |
||
| Line 35: | Line 35: | ||
|also_articles | |also_articles | ||
|notes | |notes | ||
|cat1=Movement | |cat1=Movement/ja | ||
|cat2=Rotation | |cat2=Rotation/ja | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} | ||
Revision as of 05:05, 10 April 2010
| LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: llSetLocalRot( rotation rot );警告
- この関数は 0.2 秒間、スクリプトを停止します。
サンプル
1°ずつ回転させるプリムにこのスクリプトをドロップします。*このプリムはルートプリムの子としてアタッチされるべきです。 <lsl>rotation rot_xyzq;
default {
state_entry()
{
vector xyz_angles = <0,1.0,0>; // This is to define a 1 degree change
vector angles_in_radians = xyz_angles*DEG_TO_RAD; // Change to Radians
rot_xyzq = llEuler2Rot(angles_in_radians); // Change to a Rotation
}
touch_start(integer s)
{
llSetLocalRot(llGetRot()*rot_xyzq); //Do the Rotation...
}
}</lsl>
関連項目
関数
| • | llSetRot | |||
| • | llGetRot | |||
| • | llGetLocalRot | |||
| • | llGetRootRotation |
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。