Difference between revisions of "LlGetRegionCorner/ja"
Jump to navigation
Jump to search
Mako Nozaki (talk | contribs) m (カテゴリ変更) |
Mako Nozaki (talk | contribs) m (Undo revision 850992 by Mako Nozaki (Talk)) |
||
Line 39: | Line 39: | ||
|mode | |mode | ||
|location | |location | ||
|cat1=Region | |cat1=Region | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 |
Revision as of 03:19, 12 April 2010
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: vector llGetRegionCorner( );サンプル
<lsl>//calculates your position relative to <0,0,0> of 'Da Boom' in meters when you touch it vector vecrel; //a sum of llgetpos and llgetregioncorner (and another vector). Saving time doing vector math.
default {
state_entry() { llSetText("Touch me to get your position", <1,1,1>, 2.0); } touch_start(integer total_number) { vecrel = llGetRegionCorner() + llDetectedPos(0); llWhisper(0, "llGetRegionCorner() is:"+(string)vecrel ); //for debugging before vector addition vecrel -= <256000.0, 256000.0, 0.0>;//Da Boom's region corner is at <256000.0, 256000.0, 0.0> llWhisper (0, "Position relative to <0,0,0> of 'Da Boom': "+ (string)llRound(vecrel.x) +",\t\t\t"+ (string)llRound(vecrel.y) +",\t\t\t"+ (string)llRound(vecrel.z) + "."); llWhisper(0, "Position relative to <0,0,0> of 'Da Boom':"+(string)vecrel ); //faster but unformatted output }
}
</lsl>注意点
great zeroは Great Zero🖈であるリージョン<1000,1000>の事を指します。
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。