Freya Becquerel
Rather fond of Rioja
Join date: 18 Feb 2004
Posts: 127
|
07-25-2004 02:52
First, a warning to you all. I can't script. At best, I can insert a stock script into an object, but even then usually I break it  Be simple with me! The regular "Rotation Script" includes not much other than the line: llTargetOmega(<0,0,1>,PI,1.0) Can someone please add whatever is required to that line so I can control the speed of rotation? I'd like it to be quite slow, maybe once every 10 seconds. Thanks, F.
|
Siobhan Taylor
Nemesis
Join date: 13 Aug 2003
Posts: 5,476
|
07-25-2004 03:27
Freya,
The command has three parameters... in this case ...
<0,0,1> -- the direction of rotation PI -- the initial speed 1.0 -- the acceleration
Basically change PI to something smaller, say 0.5 or something...
_____________________
http://siobhantaylor.wordpress.com/
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
07-25-2004 03:29
llTargetOmega(vector axis, float spinrate, float gain); In your case, you need only concern yourself with axis and spinrate, since, from your post, I can assume you are spinning a non-physical object (gain only affects physical). spinrate is the rate of turn around the axis in radians / second. So, since a full turn around the object is TWO_PI radians, to compute the spinrate for a full revolution to occur every 10 seconds, divide TWO_PI by 10. TWO_PI is approximately 6.28319, so if you divide by 10, you get 0.628319. PS: Please forgive me if my math is incorrect, computation at 4AM isn't my forte  ==Chris
|