Difference between revisions of "LlEdgeOfWorld/ja"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{LSL_Function/ja |func=llEdgeOfWorld |sort=EdgeOfWorld |func_id=205|func_sleep=0.0|func_energy=10.0 |return_type=integer |p1_type=vector|p1_name=pos|p2_type=vector|p2_name=dir |func_footn...)
 
m
Line 6: Line 6:
|p1_type=vector|p1_name=pos|p2_type=vector|p2_name=dir
|p1_type=vector|p1_name=pos|p2_type=vector|p2_name=dir
|func_footnote
|func_footnote
|func_desc='''dir'''から'''pos'''で判定した境界線が、(近接したシミュレータは含まない)SIMの端か確認します。
|func_desc='''dir'''から'''pos'''で判定した境界線が、(近接したシミュレータは含まない)SIMの端か確認します。
|return_text={{HoverText|boolean|TRUEあるいはFALSE}}
|return_text={{HoverText|boolean|TRUEあるいはFALSE}}
|spec
|spec

Revision as of 08:57, 19 April 2009

要約

関数: 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の関連した項目が参考になるかもしれません。