Jump to content

LSL function that retrieves / limit rotating?


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

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

Recommended Posts

Hi!

I have some problems with rotating

 

I would like to trigger an event (loop a sound, while an object rotating (linked object, nonphysical, and not rotating by llTargetOmega).

So the best would be to get something like  integer isrotating = TRUE or FALSE

But I also thought if that is not possible, to get the value of the rotation of the z axis and trigger the even if the rotation value changing (so decreasing -- of increasing ++)

Any of these are possible?

Also there is a way to limit of the rotation of an axis, so stop at between two angles?

Link to comment
Share on other sites

You'd moste likely have to run a timer that compares the object's rotation with the last stored rotation and basically if the rotation is the same -> not rotating, if the rotation is different -> rotating.

If the object is using llTargetOmega i believe you can use llGetOmega to fetch the current angular rotation.

If the object is physical, llGetTorque might help.

 

Your explanation makes it sound, to me like the movements are controlled by another script, why not simply have that script tell you if it is rotating the object or not?

Edited by Kyrah Abattoir
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1784 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...