I have done a lot of research on the web the last few days, but at no luck on this subject.
What I’m trying to achieve:
I am making a top-down shooter game with spaceships.
I have a script attached to a prefab (enemy) that will make them spawn after a given time.
They move from top to bottom (z-axis) before being destroyed. They also move along the horizontal axis while moving down. This movement is changed to the oposite direction after 2.5sec.
The problem here is that the enemy object is allways facing the same way (straight down).
I want the enemy to look at the direction they are traveling, and when they change to the oposite horizontal direction, the rotation changes with it (with a fast but smooth motion).
Is this possible without the object having a move-to-target?
EDIT:
I am using C# btw.
thx!