Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

the rotation blues

Edmond Poole
Junior Member
Join date: 3 Aug 2004
Posts: 6
08-09-2004 09:25
hello all here is my question:
Is there a way to make one prim (or prim groop) rotate around an axis while the other linked prims remain stationary, but still linked (so when changing position everything moves together, but when rotating only the one part moves).

i tried this:

v=<0.0,0.0,90.0>;

llSetRot(llEuler2Rot(v*DEG_TO_RAD) / ( (ZERO_ROTATION / llGetLocalRot()) * llGetRot()));

,but it still rotated everytthing.

i think perhaps i misunderstand how llSetRot() functions; I dont know. Any help would be greatly appreciated.

heres a diagram:
CODE

______________
| spinny |
| thing | <--this should
|______________| spin around
| | the z axis
| | <----------- here
| |
| |
--------------------
| Base | <-------- while this
| | remains
-------------------- stationary


thanks
ed
Karighan Wilde
Member
Join date: 2 Aug 2004
Posts: 29
08-09-2004 14:25
I'm not experienced yet/haven't played around with LSL to really know what's going on exactly but...

I -think- the child object (the spinny thingie) needs it's own script that rotates it. If you script a rotate into the base, it'll rotate the base (and everything else with it).
Princess Medici
sad panda
Join date: 1 Mar 2004
Posts: 416
08-09-2004 14:54
Try posting in the scripting forum for confirmation, but I'm pretty sure there is no way to rotate only one prim in a linked set EXCEPT using a rotating texture to give the illusion that the one prim is moving.
Jake Cellardoor
CHM builder
Join date: 27 Mar 2003
Posts: 528
08-10-2004 11:03
Karighan is correct. You need to place a script in the child object to get it to rotate. When editing the object, check the "Select Individual" button on the edit panel and then go to the Contents tab to add the script. You can then use link messages to communicate between the script in the child object and the script in the parent.