Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

linking rotating objects?

LeVey Palou
Registered User
Join date: 31 Aug 2006
Posts: 131
11-08-2006 08:15
When i built a rotating object I can not attach it to anything else or the whole link begins rotating. Is there a rotation script which allows for this? For instance a fan blade in a fan box? Plz advise and thank you for your help.

<I see wings on airplanes rotate according to the planes position or speed so I am sure it exists but I can not locate a script like this in the forum. One about doors but i am not sure that will give continuous rotation like i want.
(just so you know i tried before posting...: )>
Raeyan Aldrich
Registered User
Join date: 14 Oct 2006
Posts: 44
11-08-2006 08:44
if you want the prim to rotate around it's own position use

llSetRot()

http://lslwiki.com/lslwiki/wakka.php?wakka=llSetRot



if you want it to rotate around the link set's parent prim use

llSetLocalRot()

http://lslwiki.com/lslwiki/wakka.php?wakka=llSetLocalRot
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
11-08-2006 18:21
LeVey, are you perchance linking the rotating object as the root prim? That would be expected to do what you are describing. Try linking with a different prim as root, and tell us if that helps.:)
_____________________
  1. ninjafoo Ng Says:
    November 4th, 2006 at 7:27 am
    We all love secondlife so much and were afraid that the magic will end, nothing this good can ever last…. can it?

Ultrus Eros
Registered User
Join date: 5 Nov 2006
Posts: 2
11-08-2006 21:10
Related to this question, how would I make something rotate in a looping animation over time? Excuse my newbiness.
Ultrus Eros
Registered User
Join date: 5 Nov 2006
Posts: 2
11-08-2006 21:38
Cancel that. I used the following code to make a texture rotate around a shpere I made. WHoo!

CODE
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 0, 0, 0.0, 0.0, -1);