llGetCenterOfMass
LSLvector llGetCenterOfMass()
Returns the prim's centre of mass (unless called from the root prim, where it returns the object's centre of mass).
Takes no parameters.
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.