Difference between revisions of "LlGetMassMKS"
Jump to navigation
Jump to search
m |
m (added date of release) |
||
Line 37: | Line 37: | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
|history = Date of Release [[ Release_Notes/Second_Life_Server/11#11.09.23.241511 | 23/09/2011 ]] | |||
}} | }} |
Revision as of 12:15, 25 June 2013
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llGetMassMKS( );0.0 | Forced Delay |
?? | Energy |
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.
Examples
<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> * llGetMassMKS(), FALSE); // This fires the object up at the same m/s whatever the size (or difference!) }}//Written by El Taka</lsl>
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 |