Jump to content

llTargetOmega toggle in root - root prim OR child prim rotates...


Emma Krokus
 Share

You are about to reply to a thread that has been inactive for 197 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Water wheel - 3 prims, root prim has script (no other scripts in linkset):

integer play=FALSE;
string sound="Water Mill";

default {
  touch_start(integer detected)
    {
      play = !play;
      if (play) {
        llLoopSound(sound, 1.0);
        llTargetOmega(<-1,0, 0>*llGetRot(),0.12,1.0);//llTargetOmega(<0,0,1>,0.12,PI);
      }else{
        llStopSound();
        llTargetOmega(<0,0,0>,0,0);
      }
    }
}

Either the root prim plus middle prim rotates, and the wheel does not. Or root and middle prim stop, wheel turns!

I've reset as well stopped and restarted the script. Issue persists - any thoughts?

Thank you! :) 

Link to comment
Share on other sites

36 minutes ago, Emma Krokus said:

I've reset as well stopped and restarted the script. Issue persists - any thoughts?

omega is a 'prim property' which means that it continues to rotate even after the script is removed/stopped. for debugging problems, you want to use llSetLinkPrimitiveParamsFast with the PRIM_OMEGA property to set every link in the linkset to not rotating before trying to figure out what's making the wrong things rotate.

llSetLinkPrimitiveParamsFast(LINK_SET,[PRIM_OMEGA,<1,0,0>,0.0,0.0]);

or so.

Edited by Quistess Alpha
  • Thanks 1
Link to comment
Share on other sites

41 minutes ago, Quistess Alpha said:

omega is a 'prim property' which means that it continues to rotate even after the script is removed/stopped. for debugging problems, you want to use llSetLinkPrimitiveParamsFast with the PRIM_OMEGA property to set every link in the linkset to not rotating before trying to figure out what's making the wrong things rotate.

llSetLinkPrimitiveParamsFast(LINK_SET,[PRIM_OMEGA,<1,0,0>,0.0,0.0]);

or so.

That did the trick!

I suspected prim property and wiped the individual prims... to no avail.

So I tried stopping all from the root script with your function. And it's working fine now:)

Thank you, Quistess :) 

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 197 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...