Rotating

Scripting help, tricks, and tips. How to use the editor.
Post Reply
Farfelkugeln
Posts: 14
Joined: Fri Sep 21, 2007 2:22 pm

Rotating

Post by Farfelkugeln »

This is probably a stupid question, cause' I'm likely to have overlooked something.
But is there an easy way to make things rotate counterclockwise?
rycuda
Posts: 9
Joined: Sat Sep 29, 2007 7:32 am

Post by rycuda »

Make speed negative.
Farfelkugeln
Posts: 14
Joined: Fri Sep 21, 2007 2:22 pm

Post by Farfelkugeln »

Thanks
rycuda
Posts: 9
Joined: Sat Sep 29, 2007 7:32 am

Post by rycuda »

Happy to help =)
Farfelkugeln
Posts: 14
Joined: Fri Sep 21, 2007 2:22 pm

Post by Farfelkugeln »

For some reason the parts won't rotate when I make the speed negative.
I've done exactly like you wrote in the tutorial, but it still dont work.
rycuda
Posts: 9
Joined: Sat Sep 29, 2007 7:32 am

Post by rycuda »

Can you post the AI lines from the editor? It'll give me a better idea of what's going on.
Farfelkugeln
Posts: 14
Joined: Fri Sep 21, 2007 2:22 pm

Post by Farfelkugeln »

Here you go.

rotatePart,48,-1,0,60,20

You don't suppose that the space between is important?
rycuda
Posts: 9
Joined: Sat Sep 29, 2007 7:32 am

Post by rycuda »

Okay, for me that code generates a part that starts out rotating counter clockwise and will then rock back and forth between the minimum and maximum angles. Is what what you're after, or do you want the piece to keep spinning counter clockwise forever?

If you want it to keep spinning counter clockwise forever you need to change that 60 to a 0 so that the line reads:
rotatePart,48,-1,0,0,20

Otherwise I'm going to need you to explain to me what you're wanting the piece to do.
Farfelkugeln
Posts: 14
Joined: Fri Sep 21, 2007 2:22 pm

Post by Farfelkugeln »

Hmm, it is supposed to rotate between min and max angle.
I think my problem is to get the right rotation between those.
I'll just try and fail till' I get it.
Thanks for the help though.
Post Reply