These forums are CLOSED. Please visit the new forums HERE
Global position of an attachment? |
|
Seifert Surface
Mathematician
![]() Join date: 14 Jun 2005
Posts: 912
|
12-01-2005 12:03
Maybe I'm missing something, but I can't seem to find a way to get at the position of an attachment in region coordinates. The obvious things to try give me the position of the center of the avatar. If I knew the position of the attachment relative to the avatar, and some rotation data, I should be able to get at the attachment position, but this info doesn't seem to be available. Can anyone confirm or deny this?
_____________________
-Seifert Surface
2G!tGLf 2nLt9cG |
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
12-01-2005 12:09
When an object is attached to an avatar...it essentially becaomes part of the "avatar object"...and the center becomes the avatar center.
_____________________
--AeonVox--
Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music. |
Seifert Surface
Mathematician
![]() Join date: 14 Jun 2005
Posts: 912
|
12-01-2005 12:28
Well yes, but then I'd like to use something like llGetLocalPos to get the position of the attachment relative to the avatar center, but that always returns <0,0,0>.
_____________________
-Seifert Surface
2G!tGLf 2nLt9cG |
Strife Onizuka
Moonchild
![]() Join date: 3 Mar 2004
Posts: 5,887
|
12-01-2005 12:48
Thats not actualy accurate. In the root prim llGetLocalPos returns the local position of the attachment releative to the attachpoint.
To answer your original question: Why can't i get the attachpoint location. This will blow your mind. Attach points, avatar skeletons and meshes are entirely client side. The config file responsible not only determins how your av looks but also determins how every av looks. By modifying this file you can totaly screw up how all avatars look, think acid trip. The sim only knows the bounding box for your av and the mesh textures, nothing more. It doesn't know where the attachpoints are, It doesn't know how many your client can handle, It is ignorant to your configuration. One of my long term projects is to reconfigure the client. _____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey |
Beatfox Xevious
is THOUSANDS OF PEOPLE
![]() Join date: 1 Jun 2004
Posts: 879
|
12-01-2005 12:56
As far as the server is concerned, there is no position/rotation of attachments except in relation to their respective attachment points. And the position/rotation of attachment points is based on the avatar's animation, which is processed entirely client-side. So I'm sorry to say that what you're looking for is not currently possible.
You can fudge it and "guesstimate" attachment point locations manually, but there's no way to actually sync those numbers with the avatar's animation. Edit: Dangit Strife, you're too fast for me! ![]() _____________________
My Beatworks: Zephyr Chimes wind chimes, the KanaMaster Japanese kana tutor, and the FREE Invisibility Prim Public. Look for them at the Luskwood General Store in Lusk (144, 165).
"You have been frozen. You cannot move or chat. A pony will contact you via instant message (IM)." - mysterious system message I received after making off with Pony Linden |
Seifert Surface
Mathematician
![]() Join date: 14 Jun 2005
Posts: 912
|
12-01-2005 14:19
Heh, that makes some sort of sense... ok, not worth pursuing this line of attack much further. Thanks for the responses.
_____________________
-Seifert Surface
2G!tGLf 2nLt9cG |