Nalates Urriah Posted August 22, 2012 Share Posted August 22, 2012 I've been reading and changing the Wiki's description of this function.Right now I am having a problem sorting out when the function actually causes an object to continue watching an object... I can't see that it does... or even could. Use of StopLookAt seems to be a pointless reference in the description.Am I missing something? Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 22, 2012 Share Posted August 22, 2012 I haven't tried this, but I imagine that if you had set the damping time in llRotLookAt to a rather long period, you might want to have the option of stopping it before the object rotated all the way. This is totally off the top of my head, but maybe something like this ... touch_start(integer num){ llSetTimerEvent(0.1); llRotLookAt(llRotBetween(<1.0,0.0,0.0>, llVecNorm(newpos - llGetPos(), 1.0, 30.0);}timer(){ if (llGetTimeOfDay() > 3600.0) { llStopLookAt(); }} It's a hokey example. I can't think of why I would want to do that, but I suspect that it would work. Link to comment Share on other sites More sharing options...
Innula Zenovka Posted August 22, 2012 Share Posted August 22, 2012 It doesn't do much if the object isn't physical, but if it is physical, then it's important. Try calling llRotLookAt in a physical object with gravity set to 0 and then manually rotate the object. It should turn back to the rotation set by llRotLookAt. 1 Link to comment Share on other sites More sharing options...
Nalates Urriah Posted August 22, 2012 Author Share Posted August 22, 2012 Getting things to rotate once is not a problem. If the function is to keep the rotated object looking in the set direction, then it makes sense. I'll experiement with manually moving things and see if they come back. EDIT:--------- Making something physical and then moving it around, the function keeps it facing the direction supplied. I was not able to rotate the object without editing it. The object would come back to the LookAt direction once I left Edit mode. Turning off llRotLookAt with a SoptLookAt I could rotate the object by kicking it. Otherwise kicking it just slides the object and never lets it rotate. Thanks for the tip. Link to comment Share on other sites More sharing options...
Innula Zenovka Posted August 22, 2012 Share Posted August 22, 2012 Yes, if you call llRotLookAt in a non-physics object it behaves pretty much like llSetRot, I think. But in a physics object it locks the rotation, rather as llMoveToTarget locks the position. 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