[Opensim-users] llTargetOmega : Bug or feature ?

Jeff Kelley opensim at pescadoo.net
Sat Aug 1 19:53:47 UTC 2020


At 10:18 PM -0700 7/31/20, Dahlia Trimble wrote:

>  A single prim is essentially a linkset of one prim.

Ok. So this sentence applies :

    « If the script is attached to the root prim, the
     entire object rotates around the region axis. »

I was wrong saying it rotates around the prim's 
axis. It rotates around the region axis llRot2Up( 
llGetRot() ) (and not llGetLocalRot, thanks Fred) 
which come to be the prim's up axis expressed in 
region coordinates. So

    llTargetOmega( llRot2Up( llGetRot() ), 1, 1)

should make the prim rotate around it's z axis once issued.

This is not the case when the prim's orientation 
has been altered manually while spinning.

Let's try another way :

Can someone come with a llTargetOmega script 
making a cylinder rotate around it's z axis, 
using any event to restore the effect after the 
prim's orientation has been altered manually 
while spinning ?



-- Jeff



More information about the Opensim-users mailing list