Jump to content

LlGetMass

From OSgrid Wiki
Revision as of 22:37, 31 December 2017 by Osgridadmin (talk | contribs) (Created page with "==Function: float llGetMass( );== Returns a float that is the mass of object that script is attached to. <br><br> '''Caveats''' <br> • Attachments do not effect an avatar's...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function: float llGetMass( );

Returns a float that is the mass of object that script is attached to.

Caveats
• Attachments do not effect an avatar's mass, only certain Appearance settings.

Examples

<source lang="lsl">

//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> * llGetMass(), FALSE); // This would fire the object up at the same m/s whatever the size (or difference!)
   }

}//Written by El Taka </source>


See Also
Functions
• llGetObjectMass – Gets the object mass.
• llGetForce – Gets the objects force
• llGetOmega
• llGetVel
• llGetTorque
• llGetAccel