LlEdgeOfWorld/ja - Second Life Wiki

LlEdgeOfWorld/ja

From Second Life Wiki

メインページ > LlEdgeOfWorld > LlEdgeOfWorld/ja
Jump to: navigation, search

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

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

booleanのinteger値を返します。

• vector pos
• vector dir

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