LlGetMass
From Second Life Wiki
| Languages: |
English • Deutsch • Español • ελληνικά • Français • עברית • Italiano • 日本語 • 한국어 • Nederlands • Magyar • Norsk • Dansk • Svenska • Türkçe • Polski • Português • Русский • украї́нська • 中文(简体) • 中文(繁體) |
| Volunteer translated pages are linked in blue, Google translated pages are linked in grey. Learn how to provide volunteer translations. | |
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Summary
Function: float llGetMass( );| 109 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Returns a float that is the mass of object that script is attached to.
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> * llGetMass(), FALSE); // This fires the object up at the same m/s whatever the size (or difference!) } }//Written by El Taka
See Also
Functions
| • | llGetObjectMass | – | Gets the object mass. | |
| • | llGetForce | – | Gets the objects force | |
| • | llGetOmega | |||
| • | llGetVel | |||
| • | llGetTorque | |||
| • | llGetAccel |
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

