Rotate object 180 degress then stop

Hi,

When my game loads up I need to rotate an object 180 degrees and then stop.

Any ideas the best way to do this?

Thanks guys.

Mr_Curious

play an animation?

ITween

Those are not helpful answers… im not even sure how animation would qualify as an answer

The most obvious solution…

transform.RotateTowards(transform.rotation, Quarternion.Euler(0,180,0), 1);

If you don’t understand what I just said, you need to do the lerpz tutorial. You can find it in the Support link up top.

Perhaps you should re-read the Unity manual.

http://docs.unity3d.com/Documentation/Manual/Animation.html

Using the animation component is the perfect solution for such a problem. Stuff like this is exactly what it was made for.

Playmaker can do it easy.

Even though using an animation is a solution, this was posted in the scripting category, so James is right. This is kind of like the give a man a fish vs give him a fishing rod situation.
+1 on actually telling him now to rotate an object.

Thanks to everyone for their helpful replies, I appreciate it very much indeed.

Cheers,

mc