LSL Wiki Mirror 7-7-7 : llGetGeometricCenter

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
vector llGetGeometricCenter()

Returns the geometric center of the linked set the script is in relative to the object's position (the position of the root prim of a linked set). To get the object's position, use llGetPos.

llGetGeometricCenter works perfectly for complex objects with two prims, but any more than two and it's off significantly. Even three basic cubes offset along three axes with no rotation gives a problem. I'm really trying to conserve prims by using auto rezzing, but it's still very frustrating. The other few functions that came with SL 1.5 seem about as useful. -ReadyJack


Functions | Object
There is one comment on this page. [Display comments/form]