I was wondering how to calculate a car to drive to a certain position in space.
While a tank or a person can turn around their own axis a standard car cannot, it needs to turn around until it is facing the destination point in space and then start driving into it's direction.
My first thought was calculating the angle between the desired direction and the current direction of the car every cycle
and let the car turn step by step until delta angle is zero.
However I think this might be overkill to do for lots of cars in my Android racing game.
I always try to avoid sin and cos because I was told they are very expensive to compute on CPU and I wanted to ask if there is a better faster easier way to calculate this?
Or if this is a good way to go.
Thanks
Best Regards