I am working on a 2D topdown game where you have cars you can drag around. you can touch any given car and move it around. This kind of works but when I drag a curve the sprit of the car does not turn in direction of its movement but rather moves sideways.
I need a way to rotate the sprite towards input (touch,mouse) and be updated as long as the input "is down" but I am unsure how to calculate and update the angle each frame.
I do not want to use velocity towards the input but rather drag and drop while "clicking" on the sprite.