Difference between revisions of "LlGetObjectMass/ja"

From Second Life Wiki
Jump to navigation Jump to search
m (Undo revision 850202 by Mako Nozaki (Talk))
Line 1: Line 1:
{{LSL_Function/ja
{{LSL_Function/uuid/ja|id|sim=*|object=*}}{{LSL_Function/ja
|func_id=295|func_sleep=0.0|func_energy=10.0
|func_id=295|func_sleep=0.0|func_energy=10.0
|func=llGetObjectMass
|func=llGetObjectMass
|return_type=float|p1_type=key|p1_name=id|p1_desc=Sim内のアバターかオブジェクト。
|return_type=float|p1_type=key|p1_name=id
|func_footnote
|func_footnote
|func_desc
|func_desc
|return_text='''id'''の質量
|return_text='''id''' の質量
|spec
|spec
|caveats=
|caveats=
*'''id'''がSim内に存在しなかった場合は、0を返します。
* '''id''' が地域に存在しなかった場合は、 0 を返します。
* '''id''' にはオブジェクトの中のプリムも指定することができます。
|constants
|constants
|examples=
|examples=
Line 15: Line 16:
     touch(integer n)
     touch(integer n)
     {
     {
         llSay(0, llDetectedName(0) + " your mass is " + (string)llGetObjectMass( llDetectedKey(0)) + "
         llSay(0, llDetectedName(0) + " your mass is " + (string)llGetObjectMass( llDetectedKey(0)) + " lindogram.");
lindogram'.");
     }
     }
}
}
Line 23: Line 23:
|also_functions=
|also_functions=
{{LSL DefineRow||[[llGetMass/ja|llGetMass]]|スクリプトが動いているオブジェクトの質量を取得します。}}
{{LSL DefineRow||[[llGetMass/ja|llGetMass]]|スクリプトが動いているオブジェクトの質量を取得します。}}
|also_tests
|also_tests=
{{LSL DefineRow||[[llGetObjectMass_Test]]}}
|also_events
|also_events
|also_articles
|also_articles
|history=サーバのコードバージョン1.18.6.76747以前のアバタの質量は1.954922 lindogramに修正されました。現在のアバタシェイプ/サイズと相対的なものです。
|history=サーバのコードバージョン 1.18.6.76747 以前は、アバターの質量は 1.954922 固定でした。現在はアバターのシェイプ/サイズに比例しています。
|notes=
|notes=
* アバタの質量はシェイプ/サイズと相対的で、アタッチメントによる影響はありません。
* SLでの [http://en.wikipedia.org/wiki/Mass 質量] は ''lindogram'' として表されます。
* SLでの[http://en.wikipedia.org/wiki/Mass 質量]は''lindogram''として表されます。
* アバターの質量はシェイプ/サイズに比例するもので、アタッチメントによる影響はありません。
|cat1=Object
|cat1=Object
|cat2=Physics
|cat2=Physics

Revision as of 00:32, 4 May 2010

要約

関数: float llGetObjectMass( key id );

id の質量を float で返します。

• key id 同じ 地域 にある アバター または オブジェクトUUID

警告

  • id が地域に存在しなかった場合は、 0 を返します。
  • id にはオブジェクトの中のプリムも指定することができます。
All Issues ~ Search JIRA for related Bugs

サンプル

<lsl>default {

   touch(integer n)
   {
       llSay(0, llDetectedName(0) + " your mass is " + (string)llGetObjectMass( llDetectedKey(0)) + " lindogram.");
   }

}

//Anylyn Hax 15:02, 28 July 2007 (PDT)</lsl>

注意点

  • SLでの 質量lindogram として表されます。
  • アバターの質量はシェイプ/サイズに比例するもので、アタッチメントによる影響はありません。

関連項目

関数

•  llGetMass スクリプトが動いているオブジェクトの質量を取得します。

特記事項

経緯

サーバのコードバージョン 1.18.6.76747 以前は、アバターの質量は 1.954922 固定でした。現在はアバターのシェイプ/サイズに比例しています。

Search JIRA for related Issues

テスト

•  llGetObjectMass_Test

Signature

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