llGetObjectMass

From Second Life Wiki
Revision as of 05:12, 29 July 2007 by Strife Onizuka (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.)
Jump to navigation Jump to search

Summary

Function: float llGetObjectMass( key 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

  • Returns zero if id is not found in the sim.

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.

Deep Notes

Signature

function float llGetObjectMass( key id );