I am trying to make one of the enemy vehicles in my game move a bit.
The view is top-down. So the physics used is just acceleration and deceleration. How can I make an enemy to move up and down, up and down over and over again? At the same time, the enemy should stop for a short time before moving again instead of continuous movement. Moreover, the _rotation of the vehicle matters.
It seems quite complex. I have no idea how to do it.
Any help will be appreciated.