KecskeShajt Ichibara Posted May 1, 2019 Share Posted May 1, 2019 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 More sharing options...
Kyrah Abattoir Posted May 1, 2019 Share Posted May 1, 2019 (edited) 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 May 1, 2019 by Kyrah Abattoir Link to comment Share on other sites More sharing options...
KecskeShajt Ichibara Posted May 1, 2019 Author Share Posted May 1, 2019 Well, it is rotating by llSetLinkPrimitiveParamsFast(2,[PRIM_ROT_LOCAL,<0,0,rot.z,rot.s>]); So just moving around the z axis Link to comment Share on other sites More sharing options...
KecskeShajt Ichibara Posted May 1, 2019 Author Share Posted May 1, 2019 The rotation controlled by the camera movement Link to comment Share on other sites More sharing options...
Recommended Posts
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