|
Thorne Kaiser
Nice Guy
Join date: 29 Nov 2005
Posts: 132
|
02-22-2006 06:20
Is there a way to exclude a linked child prim from rotating? The root prim has the script in it using
llSetPrimitiveParams([PRIM_ROTATION, <0, 0, 0, 1>]);
etc....
Howeer, I have a set the I do not want to move at all. Is there a function to use to tell them to be still?
Thanks, Thorne
|
|
Thorne Kaiser
Nice Guy
Join date: 29 Nov 2005
Posts: 132
|
02-22-2006 17:54
Rephrase...can I lock a child prim in pace so it does not rotate with the parent prim?
|
|
Racer Plisskin
Rezerator
Join date: 2 Jan 2005
Posts: 147
|
02-25-2006 14:36
whenever the parent prim changes rotation, set the child prims rotation to the inverse of llGetRootRotation()
// FUNCTION rotation Inverse(rotation r) { r.s = -r.s; return r; }
// IN CODE ("base_rot" = the rotation that you wnt the prim to end up // pointing but is not needed if you want it to end up pointing 0,0,0...) llSetLocalRot(base_rot * Inverse(llGetRootRotation()));
_____________________
"What's important in life is not how many breaths we get to take but those moments that take our breath away." -- Jaques Cousteau
"A thin line separated serious homicidal purpose from buffoonery." -- Dean Koontz
"CanYouFixTheSpaceBarOnMyKeyboard?" -- Email to Helpdesk
|
|
Thorne Kaiser
Nice Guy
Join date: 29 Nov 2005
Posts: 132
|
02-27-2006 20:39
No, cannot seem to get that script to work. I get a syntax error on rotation Inverse(rotation r) { r.s = -r.s; return r; }
|