LSL Wiki Mirror 10-5-2006: mass

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::

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
There are 6 comments on this page. [Display comments/form]