Don't click here unless you want to be banned.

LSL Wiki : llGetGeometricCenter

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are
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

This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

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