Difference between revisions of "LlGetMassMKS"

From Second Life Wiki
Jump to navigation Jump to search
m (added date of release)
m
Line 8: Line 8:
|caveats=*Attachments do not effect an avatar's mass, only certain Appearance settings.
|caveats=*Attachments do not effect an avatar's mass, only certain Appearance settings.
|constants
|constants
|examples=<lsl>//A way of making a constant force that returns the same speed visually whatever the object is
|examples=<source lang="lsl2">//A way of making a constant force that returns the same speed visually whatever the object is
default
default
{
{
Line 16: Line 16:
         // This fires the object up at the same m/s whatever the size (or difference!)
         // This fires the object up at the same m/s whatever the size (or difference!)
     }
     }
}//Written by El Taka</lsl>
}//Written by El Taka</source>


|helpers
|helpers

Revision as of 02:12, 22 January 2015

Summary

Function: float llGetMassMKS( );

Returns a float that is the mass (in Kilograms) of object that script is attached to. Functionally identical to llGetMass except for the unit used in the return value.

Caveats

  • Attachments do not effect an avatar's mass, only certain Appearance settings.
All Issues ~ Search JIRA for related Bugs

Examples

//A way of making a constant force that returns the same speed visually whatever the object is
default
{
    touch_start()
    {
        llApplyImpulse(<0.0, 0.0, 5.0> * llGetMassMKS(), FALSE);
        // This fires the object up at the same m/s whatever the size (or difference!)
    }
}//Written by El Taka

Notes

  • the Kilogram value seems to be the Lindogram value multipled by 100.

See Also

Functions

•  llGetObjectMass Gets the object mass.
•  llGetForce Gets the objects force
•  llGetOmega
•  llGetVel
•  llGetTorque
•  llGetAccel
•  llGetMass

Deep Notes

History

Date of Release 23/09/2011

Search JIRA for related Issues

Signature

function float llGetMassMKS();