Don't click here unless you want to be banned.

LSL Wiki : mass

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl801.us.archive.org

Mass


Mass is the measure of translational inertia.

The mass of a prim or object, as reported by llGetMass or llGetObjectMass, depends only on its size and shape, not on its material type. The units are lindograms.

Functions

llGetCenterOfMass
llGetMass
llGetObjectMass



SL gravity is <0,0,-9.8> m/s2. According to Newton's Second Law, an object may be given a desired acceleration with:

vector desired_acceleration;
float mass = llGetMass();
llSetForce(mass * (desired_acceleration + <0,0,9.8>), FALSE);

Notes




Physics | Energy
Comments [Hide comments/form]
Uh, isnt it the sum of each of the prim's volumes * 10?
-- ChristopherOmega (2004-02-19 19:04:11)
Yup, 0.5x0.5x0.5 cube has mass 1.25, therefore, prim mass = volume * 10
-- ChristopherOmega (2004-02-19 19:05:39)
Please leave llSetMass in for reference!
-- EepQuirk (2005-08-17 21:40:23)
llSetMass is not a function and does not belong here, it will cause confusion for users trying to code.
-- IceBrodie (2005-08-18 01:22:19)
Again, for the upteenth time, IT IS FOR REFERENCE IN CASE PEOPLE WONDER IF IT EXISTS! Geez...
-- EepQuirk (2005-08-18 01:55:54)
Measuring with llGetAccel, gravity seems to be <0.0,0.0,-9.8> precisely, no 0.01.
-- SeifertSurface (2005-08-18 05:52:14)
Attach a comment to this page: