Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Slowing Down or Speeding up Rotation

VonGklugelstein Alter
Bedah Profeshinal Tekstur
Join date: 22 Dec 2007
Posts: 808
07-09-2008 10:04
Is it possible to manipulate the speed of an objects rotational travel inside this set of functions:

rotation rot = llGetLocalRot();
rotation delta = llEuler2Rot(<0,0,PI/4>;);
rot = delta * rot;
llSetLocalRot(rot);
llSleep(0.25);
rot = delta * rot;
llSetLocalRot(rot);


Any help or advise would be greatly appreciated

:)
Michael Bigwig
~VRML Aficionado~
Join date: 5 Dec 2005
Posts: 2,181
07-09-2008 10:14
Yes, it's very possible. I forget the string it's changed with...but it should be there in your rotation script. Manipulate a number and see what happens after you save and close out edit. Trial and error is how I learned about rotation speed...and I'm far from a scripter.
_____________________
~Michael Bigwig
__________________________________________________Lead Designer, Glowbox Designs
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
07-09-2008 11:29
Try adjusting the sleep time or the angle traversed.
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
07-09-2008 23:36
PI/4 is the angle that the rotation is changed by. Either use a slower timer event or make that value lower. Like, PI/8 for half the rotation.
VonGklugelstein Alter
Bedah Profeshinal Tekstur
Join date: 22 Dec 2007
Posts: 808
07-10-2008 06:24
Perhaps there is a replacement function that can acomplish the same action?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
07-10-2008 10:33
There are.

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llRotLookAt
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llLookAt