Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to move an avatar already sitting on an object?

FrenchChris Hermes
Registered User
Join date: 28 May 2005
Posts: 3
10-29-2005 09:10
I need to adjust the sit target location of a pillow AFTER the avatar has sit.

The llSitTarget sets the position before the avatar sits on the pillow.

Capturing controls to switch poses, the avatar changes pose and I have a new sit target associated with each pose, to keep the avatar centered correctly.

Calling llSitTarget again doesn't move the avatar relative to the object: is it normal or am I missing something? If it is the normal behavior for this function, how would you resolve the problem?

Thanks
FrenchChris
Les White
sombish
Join date: 7 Oct 2004
Posts: 163
10-29-2005 09:30
sit target is set on av sitting. it wont change untill the av resits.

you can try using setpos or setrot on a prim to move your av as needed for each pose.
Malachi Petunia
Gentle Miscreant
Join date: 21 Sep 2003
Posts: 3,414
10-29-2005 09:39
I think that this is a matter of the different animations having different "root" placements and so likely could only be fixed by having the animatons/poses all centered at the same locale.

Unfortunately, as you have noted, llSitTarget is prim specific and immutable while being sat upon, here is a wild guess at a hack to work around it, but it does have some limitations. Insead of using sit/SitTarget, you could use a touch event to trigger a pose and then place the avatar at an offset appropriate to the pose. The disadvantage is that the AV would not be sitting and thus not bolted down as people expect upon sitting; the player would also get "this thingy wants to animate your avatar is that ok?" message.

To get even trickier, you could put an invisible seating prim around the pillow and with some complex inter-prim communication with the pillow, the pillow could move the seating prim in accordance with the active pose. This wouldn't be easy, but you'd probably learn much in the exercise.

Good luck.
_____________________
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
10-29-2005 10:56
I believe this to be related exactly to this other thread that is going on today:
/54/7f/68685/1.html
_____________________
http://slurl.com/secondlife/Together