Hi all... I have a basic slow rotation script...
default
{
state_entry()
{
llTargetOmega(<0,0,1>,0.1,1.0);
}
}
But I would like to amend it to stop at a set time period (like a pause in the rotation) at each quarter... 0 /90 / 180 / 270 degrees
Would anyone know how this can be achieved?
Thank you for any help offered
Geoff
Rotation Script
- Geoff Quinnell
- Posts: 43
- Joined: Sun Jul 28, 2013 10:35 am
- Has thanked: 17 times
- Been thanked: 71 times
-
- Posts: 1314
- Joined: Sun Dec 23, 2012 2:26 pm
- Has thanked: 1134 times
- Been thanked: 1142 times
Re: Rotation Script
Don't script much these days but something like this might work -- change the float values to suit (the first one is the time taken for rotation, the second is the delay between rotations). NB modified from continuous script example at http://wiki.secondlife.com/wiki/LlSetKeyframedMotion.
Code: Select all
default
{
touch_start(integer total_number)
{
llSetKeyframedMotion([llEuler2Rot(<0.0,0.0,90.0>), 5.0, ZERO_ROTATION, 2.0],[KFM_DATA,KFM_ROTATION, KFM_MODE,KFM_LOOP]);
}
}
- These users thanked the author Graham Mills for the post (total 3):
- Ilan Tochner • Geoff Quinnell • Shandon Loring
- Geoff Quinnell
- Posts: 43
- Joined: Sun Jul 28, 2013 10:35 am
- Has thanked: 17 times
- Been thanked: 71 times
Re: Rotation Script
Thank you Graham... I'll give that a go when I am next in
Cheers
Geoff
Cheers
Geoff
- These users thanked the author Geoff Quinnell for the post:
- Graham Mills
- Shandon Loring
- Posts: 1346
- Joined: Sat Oct 26, 2013 3:25 am
- Has thanked: 972 times
- Been thanked: 1586 times
- Contact:
Re: Rotation Script
Very Elegant Graham!
Nicely done!!
Nicely done!!
- These users thanked the author Shandon Loring for the post:
- Graham Mills