Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rotation script with small unusual prim

JulieAnne Rau
Curious Girl
Join date: 21 Jun 2007
Posts: 201
04-14-2009 11:07
Hi Kind Person,

Sometime ago I was working on a medallion with in a necklace. I titled the medallion (moved it off from up and down) it to an angle so that it will fit flat on a chest. Now I built a small prim using the tech that Torley has on one of his videos. Its basically a box that is flat and I cut it to a triangle shape. I want this shape to spin on the titled medallion. I have used this

llTargetOmega(<0,1,0>*llGetRot(),1,1)

and it appears to work correctly until I link it to the other prims, then the direction it spins changes. I have tried to counter that by trying to figure out what the odd spin angle is and then link to see if I can get it right but after 4 days of trying, I have given up. I suspect it has something to do with linking it to another prim?

Any help, comments or pity is gratefully needed.

JulieAnne
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
04-14-2009 11:21
You want to rotate the child prim relative to the root of the linkset, so try

llTargetOmega(<0,1,0>*llGetLocalRot(),1,1);
JulieAnne Rau
Curious Girl
Join date: 21 Jun 2007
Posts: 201
04-14-2009 12:22
ok, I'll give that a go when I get home.. thanks :)