Laser Squad [Day 14] – 90 degrees FOV

Today I improved the FOV third step even more. The first version worked for 180 degrees in front of the current unit. Well, that’s nice but not so realistic; maybe if you are a fish and have eyes on sides of your head. In real life, human FOV is about 90 degrees in total.

That means actually that calculating the 45 degrees headings (north-east, south-east, north-west, south-west) got easier, because we check the appropriate quadrant in our FOV. But now for the basic headings (north, south, east, west) we must calculate two cross products to get what we want.

Of course I had to test this new method on my meadow mock map, and I’m pretty satisfied with the result.

             

* * * * *