llGetCenterOfMass
Revision as of 10:30, 3 December 2010 by Dora Gustafson (talk | contribs)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llGetCenterOfMass( );183 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns the vector position of the object's center of mass in region coordinates.
If called from a child prim, the child's center of mass is returned instead (but still in region coordinates).
Caveats
- Works in physical objects only.
- In non-physical objects Center Of Mass is not computed.
- Either the last computed value or llGetPos() is returned.
- The value is stored as a prim property and will only change when Center Of Mass is computed.
Examples
See Also
Functions
• | llGetPos | |||
• | llGetGeometricCenter |