
My question: is there a straightforward way that I'm missing to get the location of an *attachment point*, either in global coordinates or coordinates relative to either the avatar or the root prim of the attachment?
Put another way: llGetPos(), when called by the root prim of an attachment, appears to return the avatar position in global coordinates. llGetLocalPos() returns ZERO_VECTOR, i.e. relative to the root prim. llSetPos() unfortunately is relative to the attachment point, not the avatar or the root prim. This asymmetry in the function behaviour is frustrating! Is there any way around it? Determining the global position of the attachment point would be one way, but I can't think of any non-convoluted way to do this. Any ideas?
Thanks for your help,
-Wyvin