I am in the process of making a sailboat game. I have problem detecting when the wind is coming from the Left side or Right side of the ships center axis.
No matter what direction you point the ship. The nose of the ship is always "Zero rotation" and from that, I want to measure/detect what angle the wind is coming from. And if its more than 180 degrees it will be coming from Left side and if less from Right side. Not sure how to write that in math. Im sure someone who is good at math can write an expression that does it but if any one can point me in the right direction i would be much appreciated.
My best result so far is using anglediff but it only shows the shortest angle so cant use the numbers to tell if its from left or right side.