[Opensim-users] llTargetOmega : Bug or feature ?
Leal Duarte
ajlduarte at sapo.pt
Sat Aug 1 22:08:32 UTC 2020
Manual will "be strange" if the prim is already doing target omega.
not immediate clear what is the real rotation viewer applies to the
actual prim (as seen by region)
also not clear what is the base rotation it will use if gets a new
target omega.
your original code will make the cylinder rotate around its local Z
axis, it you do stop target omega before changing the prim rotation and
setting other target omega.
Ubit
On 01-Aug-20 20:53, Jeff Kelley wrote:
> 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
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at opensimulator.org
> http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
More information about the Opensim-users
mailing list