Quantx / CC2-UI-Enhancer

UI Enhancer mod for Carrier Command 2
58 stars 17 forks source link

Change holomap bearing indicator to use world rather than screen coordinates #39

Closed QuakeMatt closed 2 years ago

QuakeMatt commented 2 years ago

Fixes an issue where the holomap bearing indicator becomes less accurate the closer it is to a diagonal angle.

This seems to be caused by the screen coordinate system being ~15% wider than it is tall, causing the ruler to give incorrect readings the further it strays from the cardinal directions. In the screenshots below I've drawn the line between two corners of a 1km grid square, which should give a perfect reading of 45 degrees.

Original, bearing based on screen coordinates: bearing-original

Fixed, bearing based on world coordinates: bearing-fixed

Should be noted that this issue also appears to affect the vanilla game, though I gather there's some work in progress to officially integrate the mod? Either way, happy to also open a ticket on Geometa issue tracker if you think it's worthwhile.