Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Keep linked Prim unaffected by other prim's rotation

Dominik Carbenell
Registered User
Join date: 4 Feb 2007
Posts: 5
02-11-2007 08:23
Hello,

got a little problem while scripting a light. Hope you guys can help me out.

See, i have 3 Prims that are linked into one object
- mirror: for reflecting light, this prim is rotating (in there is a llTargetOmega script)
- lightcone: that's the light, its rotating with the mirror
- the Case: should be static, no moving, no rotating

It works fine when i only link the mirror and lightcone, its superb.

But as i want it as ONE object in my inventory i need to link the case also. When the case is linked, it rotates with the mirror and the lightcone. How can i avoid that? Read so much about rotation tried so many things, couldn't figure it out ;(

Thanks in advance,
Dominik Carbenell
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
02-11-2007 08:56
According to the elusive Wiki: "This function [llTargetOmega] can be used in a child link (in which case the child will rotate locally around its own center) or in a root link, in which case the entire linkset will rotate around the root's origin."

Which suggests that you've not got the case as the Root prim... and that you need an llTargetOmega script in both the mirror, and the light cone?
Dominik Carbenell
Registered User
Join date: 4 Feb 2007
Posts: 5
02-11-2007 09:07
Thanks for your answer, well now i have the case as root (thought i've had that). It's a step further, but doesn't work out completely.

The mirror is now rotating as it should (like before) and the case stands still.
I've put the same rotate script into the lightcone as in the mirror. So now the lightcone has its own rotation. And thats wrong ;/

Right behaviour would be when the lightcone rotates and moves with the mirror's frontface as it does when i only link those two together.

Found this thread ( /54/8a/44187/1.html ) in the wiki (i was so blind) that seems to adress my problem. Hope i'm able to apply it to my case.
Dominik Carbenell
Registered User
Join date: 4 Feb 2007
Posts: 5
02-11-2007 09:19
Hmm.. what if i set the mirror as root, the light cone rotates fine with it. Any way to keep the third prim (the case) at it's default rotation?
Carlisse Midnight
Registered User
Join date: 17 May 2003
Posts: 11
02-11-2007 14:27
maybe put the mirror and light into the case's inventory, have it rez them when it's rezzed. then it's one object in your inventory, but they aren't linked up.
Dominik Carbenell
Registered User
Join date: 4 Feb 2007
Posts: 5
02-11-2007 23:11
Oh yeah, thats a real possibility.

Thank you, will check that out.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
02-12-2007 03:32
If you make the link order such that the case is root, then the mirror and finally the light cone and have the llTargetOmega script in the mirror prim it SHOULD all work as expected.
Dominik Carbenell
Registered User
Join date: 4 Feb 2007
Posts: 5
02-12-2007 12:23
That's the way i expected it to be too. But it didn't work. But i will try it again for being sure, i really did it like that.

Thanks for your answer.