Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llRotLookAt timing

Fossil Dinosaur
Registered User
Join date: 28 Jul 2006
Posts: 3
07-28-2006 03:41
Sorry for my first post being a question, but I'm having trouble with the llRotLookAt function and I hope somebody can help. I need to time the rotation. Sort of "rotate to look at a vector in 10 seconds". I have no problem with actually getting the rotation to happen, so that the object rotates so it's pointing in the direction I want, the problem I'm having is in using the strength and damping values in a way that equates to an arbitrary number of seconds over which the rotation should happen.

Is there a calculation that can be used to get the right strength and damping values depending on the number of seconds I want the rotation to happen in? The object is physical.

I'm also finding that if the rotation is slow there's a stutter, almost like the object gets ahead of itself, springs back in the opposite direction briefly and then carries on. Is this a problem with certain strength and damping values?

Any help would be great. Thanks.
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
07-28-2006 09:31
I don't know of a way to do this, last time I looked at something like this I spent a long time trial and erroring with llRotLookAt to get a smooth rotation at the speed I wanted. I guess it's possible that llTargetOmega might be more useful here. It's far more often used on non-physical objects, but also works for physical objects
_____________________
-Seifert Surface
2G!tGLf 2nLt9cG
Fossil Dinosaur
Registered User
Join date: 28 Jul 2006
Posts: 3
07-28-2006 10:50
From: Seifert Surface
I don't know of a way to do this, last time I looked at something like this I spent a long time trial and erroring with llRotLookAt to get a smooth rotation at the speed I wanted. I guess it's possible that llTargetOmega might be more useful here. It's far more often used on non-physical objects, but also works for physical objects


Thank you for your reply. Isn't llTargetOmega client side and, when stopped, won't the object move back to the pre-rotate position? You see I need it to rotate and stay at that rotation until I need it to rotate again and I need this to be the same for every observor.
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
07-28-2006 13:00
From: Fossil Dinosaur
Thank you for your reply. Isn't llTargetOmega client side and, when stopped, won't the object move back to the pre-rotate position?
Not for a physical object IIRC. Yes for a non physical object.
_____________________
-Seifert Surface
2G!tGLf 2nLt9cG
Fossil Dinosaur
Registered User
Join date: 28 Jul 2006
Posts: 3
07-29-2006 23:17
From: Seifert Surface
Not for a physical object IIRC. Yes for a non physical object.


Thanks again Seifert. I'll have to test this to see how accurate it is as I'm concerned that it might not be accurate enough for my needs and I'll need to use a timer to stop the rotation which would lead to inaccuracies in the end rotation.