Difference between revisions of "LlGround/ja"
< LlGround
Jump to navigation
Jump to search
Mako Nozaki (talk | contribs) m (カテゴリ変更) |
Mako Nozaki (talk | contribs) m (Undo revision 851062 by Mako Nozaki (Talk)) |
||
Line 46: | Line 46: | ||
|also_articles | |also_articles | ||
|notes | |notes | ||
|cat1=Ground | |cat1=Ground | ||
|cat2=Region | |cat2=Region | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 04:19, 12 April 2010
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
警告
- 要求された場所は同じSimである必要があります。
サンプル
<lsl>// Get the object to land on the ground or on the water // by Konigmann Lippmann & Strife Onizuka FindGroundOrWater() {
float fHeight = llGround( ZERO_VECTOR ); float fWaterLevel = llWater( ZERO_VECTOR ); if( fHeight < fWaterLevel ) fHeight = fWaterLevel; vector vTarget = llGetPos();
//llSetPos can only move 10m at a time. integer iCounter = 1 + llAbs((integer)(vTarget.z - fHeight) / 10); vTarget.z = fHeight; do llSetPos( vTarget ); while( --iCounter );
}
default {
touch_start(integer total_number) { FindGroundOrWater(); }}</lsl>
関連項目
関数
• | llGroundContour | – | 地面の等高線を取得します | |
• | llGroundNormal | – | 地面の標準高を取得します | |
• | llGroundSlope | – | 地面の傾斜を取得します | |
• | llEdgeOfWorld | – | 存在する隣接Simを返します |
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。