LlGround/ja
< LlGround
Jump to navigation
Jump to search
Revision as of 23:32, 1 October 2008 by Asuka Neely (talk | contribs) (New page: {{LSL_Function/ja |func_id=42|func_sleep=0.0|func_energy=10.0 |sort=Ground |func=llGround|sort=Ground |return_type=float|p1_type=vector|p1_name=offset |func_footnote='''offset'''のXとY...)
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の関連した項目が参考になるかもしれません。