Difference between revisions of "LlGetGeometricCenter"

From Second Life Wiki
Jump to navigation Jump to search
m (+Note)
m (~Note: corrected reference frame)
Line 16: Line 16:
|also_articles
|also_articles
|notes=
|notes=
* Geometric center is the average of all linked prim centers. Mathematically it's the region position of all linked prims in the linkset added together and divided by the number of prims in the linkset.
* Geometric center is the average of all linked prim centers. Mathematically it's the root relative position of all linked prims in the linkset added together and divided by the number of prims in the linkset.
|cat1=Physics
|cat1=Physics
|cat2
|cat2

Revision as of 06:16, 7 September 2011

Summary

Function: vector llGetGeometricCenter( );
0.0 Forced Delay
10.0 Energy

Returns the vector that is the geometric center of the object relative to the root prim.

Caveats

This is currently (as of 2 December 2010) different from "center" in viewer's build tools and what llRezObject considers as "center" of linkset.

Examples

Notes

  • Geometric center is the average of all linked prim centers. Mathematically it's the root relative position of all linked prims in the linkset added together and divided by the number of prims in the linkset.

See Also

Functions

•  llGetCenterOfMass

Deep Notes

Signature

function vector llGetGeometricCenter();