|
Thumdar Yaffle
Registered User
Join date: 10 Jun 2005
Posts: 24
|
02-21-2006 16:53
I am trying to use the default rotation script, but when I insert it into my item, it's rotation speed is way too fast. What do I need to add into the script to slow it down? Here's the stock script:
default { state_entry() { llTargetOmega(<0,0,1>,PI,1.0); }
}
Thank you, Thumdar
|
|
Starax Statosky
Unregistered User
Join date: 23 Dec 2003
Posts: 1,099
|
02-21-2006 16:57
PI. or the little number 1 in the vector.
llTargetOmega(<0,0,1>,0.5,1.0);
or:
llTargetOmega(<0,0,0.5>,PI,1.0);
|
|
Thumdar Yaffle
Registered User
Join date: 10 Jun 2005
Posts: 24
|
02-22-2006 08:49
Thanks Starax! That did the trick
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
02-22-2006 17:34
To be precise, with those values, "PI" means "PI radians per second", or it rotates once every two seconds.
If you want it to take 10 seconds to go around, change "PI" to "PI/5".
|