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.
This article wasn't helpful for you? Maybe the
related article at the LSL Portal is able to bring enlightenment.
Mass |
Physics