perfect noob here... in English language too (sorry!).
My, very basic, question is: in a top-down game I have an AI Car (with "Car" behaviour, guided by events) pursuing other vehicles in a large arena (Car Wars style ). The Car may easily figure out if a target is in front of it by "LOS" behaviour; when the target exits the LOS cone (I keep it quite narrow), the Car knows it turned left or right. This is the point: left or right? how can the car to obtain this info? I tried the formula "angle(Car.x,target.x,Car.y,target.y)", supposing that when it returns 180 or less is a right turn and viceversa, but the returned values are useless (zero or -90) - probably I did not understand the correct use of that expression.
Any suggestion for a quick way to know where the target is relatively to the AI Car? thx in advance!