Turning objects 90 degrees

Is there no easy way of turning an object 90 degrees?

I’m baffled how you can be apparently using Unity for over a year and have 430 posts and apparently don’t know about transform.Rotate…?

Is there some context you didn’t provide that is making this a trick question?

1 Like

StarManta yes, let me elaborate a little, sorry. Rotating keeps rotating. I only want to turn my object to face it in a different direction as it moves in that direction. Does that mean i have to rotate the object for x amount of time then straighten it out in a coroutine. Or is there an easy way. Yes i must admit my knowledge on Vectors and movement etc is very weak. Will definietly find some videos to improve this.

Are you putting your rotation code in update? If so and you have no limitation on the code then it will just keep endlessly rotating as a result.

Hi Lethn, yes that is the problem. I just discovered the function is being called by another one which in turn is being updated. Thanks!