LSL Wiki Mirror 7-7-7 : llGetMass

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
float llGetMass()

Returns the scripted object's mass. When called from a script in a linkset, the parent will return the sum of the linkset weights, while a child will return just its own mass. When called from a script inside an attachment, this function will return the mass of the avatar it's attached to, not its own.

Mass appears to be measured in a unit analogous to kilograms.
There is speculation that the mass unit could be a "lindogram".

See llGetObjectMass to get the mass of other objects.

Q: Is there a way to set an object's mass?
A: No, short of linking additional prims to it.

For an example use, see the example in llSetForce.


Mass | Physics
There are 5 comments on this page. [Display comments/form]