dinex86 / FOV-Calculator

A simple and lightweight 'Field of View' calculator for modern racing simulations.
https://dinex86.github.io/FOV-Calculator/
MIT License
57 stars 20 forks source link

EA WRC : Fov erreur #15

Open CryptoLogiq opened 5 months ago

CryptoLogiq commented 5 months ago
base_calc = (needed_vFov_in_degrees - 18)
setting_in_game_result = base_calc + ( math.abs( basecalc ) * 2 )

with this method dont have a negative result when positive value is not negative...

-- example :

if you needed 16 deg vFov

the current calc is : (16-18) * 2 = -4

or with solution is :

base_calc = 16 - 18 base_calc = -2

setting_in_game_result = (-2 ) + (2 * 2) setting_in_game_result = (-2 ) + 4 setting_in_game_result = 4 - 2 setting_in_game_result = 2

;)