Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGetAttachOffset();

Neil Protagonist
FX Monkey
Join date: 11 Jul 2003
Posts: 346
04-29-2004 22:21
Currently there seems no way to get the absolute position in world space of an attached primitive. llGetPos() gets the position of the av and llGetLocalPos() doesnt function for that either. So I'm thinking....


vector llGetAttachOffset();

Returns the offset from av center.

But at any rate a way to get the offset or absolute position of the attached prim would be fantastic.
_____________________
"Control the things you can control, maggot. Let everything else take a flying f**k at you, and if you must go down, go down with your guns blazing." -Cort

Need fire? Visit my FX Store in Bisque(232, 48)
Sick-N-Wrong

Like Anime? Visit Nakama!
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
04-30-2004 07:46
Or even fixing llGetLocalPos so that it works for attachments. Then...

llGetPos() + llGetLocalPos()

...will return the required info.
_____________________
~ Tiger Crossing
~ (Nonsanity)
Julian Fate
80's Pop Star
Join date: 19 Oct 2003
Posts: 1,020
04-30-2004 13:40
Wouldn't the offset continuously change based on the avatar's current animation? Or is that not a problem?
Neil Protagonist
FX Monkey
Join date: 11 Jul 2003
Posts: 346
04-30-2004 18:58
yeah it would but thats not a problem so far as I can see, just run checks for it occasionally just as you do with av position and prim position.
_____________________
"Control the things you can control, maggot. Let everything else take a flying f**k at you, and if you must go down, go down with your guns blazing." -Cort

Need fire? Visit my FX Store in Bisque(232, 48)
Sick-N-Wrong

Like Anime? Visit Nakama!