8 ms·
In gamedev many things are floats, and exactly 0.0f can mean basically "null". It's not uncommon to see x != 0.0f. Other than 0.f, basically any other value if
by cypress66 4y ago
In gamedev many things are floats, and exactly 0.0f can mean basically "null". It's not uncommon to see x != 0.0f.
Other than 0.f, basically any other value if for some reason has to be compared, it's done with some margin of error like abs(x - y) < 0.0001f