Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

how to get attachment point positions?

Wyvin Barbosa
Registered User
Join date: 10 Jul 2007
Posts: 1
08-19-2007 16:29
Hello, I'm relatively new to LSL and this is my first post to this forum. Please go easy on me. :)

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
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
08-19-2007 18:31
Unfortunately there is no way to do this. If there were, then the server would have to be calculating avatar animations out, and it isn't, it's just sending that data to clients.
_____________________
-Seifert Surface
2G!tGLf 2nLt9cG