Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Position and Attachments.

Sade Galthie
Registered User
Join date: 28 Mar 2008
Posts: 1
02-01-2009 22:28
Hello, I have a set of attachments. I want to be able to reposition them and resize ect... for diffrent animations, shapes and poses. I've used llSetPos(), but they go into the correct position. I think you have to have a relitive offset for the position of the actual attachment point and the current pose. Can anyone help me with information on this?
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
02-02-2009 03:17
From: Sade Galthie
Hello, I have a set of attachments. I want to be able to reposition them and resize ect... for diffrent animations, shapes and poses. I've used llSetPos(), but they go into the correct position. I think you have to have a relitive offset for the position of the actual attachment point and the current pose. Can anyone help me with information on this?


True.

Each attachment point has it's own, relative 0,0,0 coordinate and angle, unrelated to the sim's position or angle. Many times, these relative <0,0,0> coordinates have very little to do with the avatar's "shape".. when they are affected by shape, they are SEVERELY affected by shape.

There's no way to make an attachment always point "north"... but you CAN take certain liberties with animations and detecting the "agent's" rotation.. to get something to "almost always point forward, relative to the avatar.

You can detect the agent's rotation.. and if you build an animation that always points the pelvis forward, you can assume that any attachment on the pelvis will align with the agent's rotation... then you could do your math accordingly.

But of course, this all falls alpart when you enter a no-script area, or if another animation with the same, or higher priority gets triggered that frees the pelvis

perhaps iit would be easier to rez the "props that cannot turn" and animate the avatar to match them when they "sit" on it?
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
02-02-2009 10:43
the thread on flexi dresses has a little more information as well
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -