Difference between revisions of "LlGetGeometricCenter"

From Second Life Wiki
Jump to navigation Jump to search
(This seems to be working 'as designed' and we know of no plans to change this specific function, so drop the 'currently' notion from the caveat.)
m (made the caveat sentence a bit clearer (I hope))
Line 6: Line 6:
|Return_text=that is the geometric center of the object [[Viewer_coordinate_frames#Local|relative]] to the root prim.
|Return_text=that is the geometric center of the object [[Viewer_coordinate_frames#Local|relative]] to the root prim.
|spec
|spec
|caveats=The "geometric center" is different from the "center" in viewer's build tools and what [[llRezObject]] considers as the "center" of a linkset.
|caveats=The "geometric center" is different from the "center" in viewer's build tools and also different from what [[llRezObject]] considers to be the "center" of a linkset.
|constants
|constants
|examples
|examples

Revision as of 11:33, 7 September 2011

Summary

Function: vector llGetGeometricCenter( );

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

Caveats

The "geometric center" is different from the "center" in viewer's build tools and also different from what llRezObject considers to be the "center" of a linkset.

All Issues ~ Search JIRA for related Bugs

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

All Issues

~ Search JIRA for related Issues
   Provide better llGetGeometricCenter function.

Signature

function vector llGetGeometricCenter();