Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Using llSetLinkPrimitiveParams to rotate

Moon Corrigible
Registered User
Join date: 19 Jan 2007
Posts: 75
05-11-2009 08:38
I have no idea what I am doing wrong but I am obviously failing epically somewere.

I'm trying to use llSetLinkPrimitiveParams() to reposition an avatar sitting on a chair.

llSetLinkPrimitiveParams(USER_PRIM, [
PRIM_POSITION, <A, B, C>,
PRIM_ROTATION, rot
]);

works wonderfully... until I change the direction the chair is facing.

So I use the ever popular

PRIM_ROTATION, rot * llGetLocalRot() / llGetRootRotation()])

Now I'm sitting in a different orientation but I'm still climbing around like an impatient monkey as I change the direction the chair is facing.

I've tried every variation I can think of and I can not find anything that keeps the rotation of the avatar constant when I change the rotation of the chair. What in the wold am I doing wrong?

Thanks so much in advance for attempting to salvage the ragged ends of my sanity.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
05-11-2009 08:47
You must be running into SVC-93, and would need to do a double correction for the root rotation.

The workarounds are in here:

http://jira.secondlife.com/browse/SVC-93
Moon Corrigible
Registered User
Join date: 19 Jan 2007
Posts: 75
05-11-2009 09:02
Yay!!! It worked it worked it worked!! Happy Chicken Dance!!!

You are a goddess among women!!


THHHAANNKKYYYOOUUU!!!
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
05-11-2009 10:16
some day I wish they'd fix that.
_____________________
|
| . "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...
| -