Difference between revisions of "LlGetGeometricCenter"

From Second Life Wiki
Jump to navigation Jump to search
(See SVC-6579)
Line 1: Line 1:
{{LSL_Function
{{Issues/SVC-6579}}{{LSL_Function
|func_id=278|func_sleep=0.0|func_energy=10.0
|func_id=278|func_sleep=0.0|func_energy=10.0
|func=llGetGeometricCenter|return_type=vector
|func=llGetGeometricCenter|return_type=vector
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
|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.
|constants
|constants
|examples
|examples

Revision as of 08:48, 2 December 2010

Summary

Function: vector llGetGeometricCenter( );

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.

All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

•  llGetCenterOfMass

Deep Notes

All Issues

~ Search JIRA for related Issues
   Provide better llGetGeometricCenter function.

Signature

function vector llGetGeometricCenter();