4 ms·
In game programming you want it to be 0 as often as you want it to be 1 (or really, less often). Just write a safeDiv function that takes an argument for what
by yoklov 11y ago
In game programming you want it to be 0 as often as you want it to be 1 (or really, less often).
Just write a safeDiv function that takes an argument for what the result should be if the denominator is zero.