Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSitTarget(); - changing rotation

Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
11-26-2004 11:48
I would like, if it is possible; to be able to change the rotation vector in an llSitTarget(); scripted object whilst the avatar is sitting on it. Thinking rolling over on a sunbed just by altering that rotation vector say...

I can do all the coding to make it listen, alter the vector (although if anyone happens to know the quaternion for a pi rotation about the z axis I wouldn't complain about not working it out and not forcing the system to sort it out either), but before I put the time and effort in, does anyone know if it will update whilst an avie is sitting on the target spot?

There are other reasons why I can use an llSetLocalRot(); command - namely I am already using them to rotate the whole object + seated avie.
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
11-26-2004 13:13
You can't change the rotation via llSitTarget() while the prim is being sat on. Well... you can change it, but it won't move the AV, just change the orientation of the AV the next time someone sits.

However.... You could have the sit target in a prim which you then rotate via llSetLocalRot(), which will rotate that prim relative to the root prim. You'd have to do a lot of math and use llSetLocalPos() to keep the position unchanged, but its certainly feasible.

- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
Upshaw Underhill
Techno-Hobbit
Join date: 13 Mar 2003
Posts: 293
11-26-2004 15:51
In the case of a child prim the llSitTarget still sticks you to one spot, one rotation.
Only changing the root prim changes where you are.

Keep it simple and cycle to a pose with a different orientation.

Sadly (or luckily depending on your use) llSetCameraAtOffset doesn't change unless you unsit/sit either.

L8r,
UU