Difference between revisions of "LlEdgeOfWorld/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
m (カテゴリ変更)
Line 41: Line 41:
|permission
|permission
|negative_index
|negative_index
|cat1=Region
|cat1=Region/ja
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 07:06, 10 April 2010

要約

関数: integer llEdgeOfWorld( vector pos, vector dir );

dirからposで判定した境界線が、(近接したシミュレータは含まない)SIMの端か確認します。
booleanを integer で返します。

• vector pos
• vector dir

サンプル

<lsl> //--// Tells if there are neighboring sims on touch //--//

default{

 touch_start( integer vIntTouched ){
   vector vPosObject = llGetPos();
   if (!llEdgeOfWorld( vPosObject, <0.0, 1.0, 0.0> )){
     llOwnerSay( "There is a Sim to the North" );
   }
   if (!llEdgeOfWorld( vPosObject, <1.0, 0.0, 0.0> )){
     llOwnerSay( "There is a Sim to the East" );
   }
   if (!llEdgeOfWorld( vPosObject, <0.0, -1.0, 0.0> )){
     llOwnerSay( "There is a Sim to the South" );
   }
   if (!llEdgeOfWorld( vPosObject, <-1.0, 0.0, 0.0> )){
     llOwnerSay( "There is a Sim to the West" );
   }
 }

}

</lsl>

特記事項

Search JIRA for related Issues

Signature

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