|
JulieAnne Rau
Curious Girl
Join date: 21 Jun 2007
Posts: 201
|
02-27-2009 11:40
Hi Kind Person,
I was working on a necklace last night with a medallion in the middle. I titled (moved it off from up and down) it to an angle so that it will fit flat on a chest. So far so good. Now I wanted to add a compass needle into the medallion part I found a free rotation script I have used before with the llTargetOmega in it. Looks like this....
llTargetOmega(<0,1,0> ,1, 1);
When I added that to the compass needle, the prim did start to rotation in a north-south (up and down) direction (clockwise). Thats good except the medallion is titled, remember. So my prim starts off tilted but then rotates on a funny angle to the prim (compass needle).
It there anyways to change the script to make it rotate on a angle? (I hope this all makes sense to anyone reading it)
Thanks, Julie
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
02-27-2009 11:53
llTargetOmega(<0,1,0>*llGetRot(),1,1).
|
|
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
|
02-27-2009 20:44
From: Argent Stonecutter llTargetOmega(<0,1,0>*llGetRot(),1,1). aye, the rotation from llTargetOMega is relative to the root prim, so you need to compensate for any additional rotations by the above line.
_____________________
My SLExchange shopTypos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not. The function is working perfectly fine. It's just not working the way you wanted it to work.
|
|
JulieAnne Rau
Curious Girl
Join date: 21 Jun 2007
Posts: 201
|
02-28-2009 15:35
yup, works good.. thank-you so much!
|