LlGround/ja

From Second Life Wiki
< LlGround
Revision as of 07:07, 10 April 2010 by Mako Nozaki (talk | contribs) (カテゴリ変更)
Jump to navigation Jump to search

要約

関数: float llGround( vector offset );

offsetとプリム真下の地面高にoffsetを足したを float で返します。

• vector offset

offsetのXとYの構成のみが重要です。

警告

  • 要求された場所は同じSimである必要があります。
All Issues ~ Search JIRA for related Bugs

サンプル

<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を返します

特記事項

Search JIRA for related Issues

Signature

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