Difference between revisions of "LlGetObjectMass"
Jump to navigation
Jump to search
Anylyn Hax (talk | contribs) |
(The SL unit of mass is the Linden, no way you would know that. Articles are supposed to be written in the thrid person.) |
||
Line 2: | Line 2: | ||
|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= | |return_type=float|p1_type=key|p1_name=id|p1_desc=Avatar or object in the sim | ||
|func_footnote | |func_footnote | ||
|func_desc | |func_desc | ||
|return_text=that is the mass of '''id''' | |return_text=that is the mass of '''id''' | ||
|spec | |spec | ||
|caveats | |caveats= | ||
*Returns zero if '''id''' is not found in the sim. | |||
|constants | |constants | ||
|examples= | |examples= | ||
Every avatar, regardless of size, shape, attachments, sex or species, the avatar mass is always 1.954922 Lindens. | |||
Every avatar, regardless | <pre> | ||
default | default | ||
{ | { | ||
touch(integer n) | |||
{ | |||
llSay(0, llDetectedName(0) + " your mass is " + (string)llGetObjectMass( llDetectedKey(0)) + " Lindens."); | |||
} | |||
} | }//Anylyn Hax 15:02, 28 July 2007 (PDT) | ||
</pre> | |||
Mass [m] is the quantity of materia that a avatar has inside itself, and is expressed in Kg (Kilogramms). | Mass [m] is the quantity of materia that a avatar has inside itself, and is expressed in Kg (Kilogramms). | ||
The Weight [G] is a Force, expressed in N (Newtons), and it is m * g, where g is the the gravitational atraction | The Weight [G] is a Force, expressed in N (Newtons), and it is m * g, where g is the the gravitational atraction (g = 9.81 on Earth). | ||
|helpers | |helpers | ||
|also_functions= | |also_functions= | ||
{{LSL DefineRow|| | {{LSL DefineRow||[[llGetMass]]|Gets the current object mass.}} | ||
|also_tests | |also_tests | ||
|also_events | |also_events |
Revision as of 06:12, 29 July 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llGetObjectMass( key id );295 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a float that is the mass of id
• key | id | – | Avatar or object in the sim |
Caveats
Examples
Every avatar, regardless of size, shape, attachments, sex or species, the avatar mass is always 1.954922 Lindens.
default { touch(integer n) { llSay(0, llDetectedName(0) + " your mass is " + (string)llGetObjectMass( llDetectedKey(0)) + " Lindens."); } }//Anylyn Hax 15:02, 28 July 2007 (PDT)
Mass [m] is the quantity of materia that a avatar has inside itself, and is expressed in Kg (Kilogramms).
The Weight [G] is a Force, expressed in N (Newtons), and it is m * g, where g is the the gravitational atraction (g = 9.81 on Earth).See Also
Functions
• | llGetMass | – | Gets the current object mass. |