Cool. Thanks for the explanation. Is there any significance to 1 + 8 = 10?
Cool. Thanks for the explanation. Is there any significance to 1 + 8 = 10?
Can someone explain this one for me?
I asked this question on this post on a different instance, but would there be issues being that the code compares a float to integer zero “0”?
I know this is /c/Progammerhumor, but I wanted to pull on this thread a little bit for my own edification. I’m a Python guy and have been a while, but I’ve dabbled in other languages. The screenshot says “MonoBehaviour” which makes me assume this is mono or a .Net-like language (you know what happens when you assume).
If your player health is a float, would mono or .Net have an issue comparing the float with integer zero “0”? I mean, it seems like floating point precision may make it impossible for it to ever “equal” integer zero, but it also seems like the code isn’t accounting for that precision error.
Am I overthinking this?
Here’s a fun CGP Grey video on the matter: https://youtu.be/pUF5esTscZI?si=9czdx4u8jWruZoui
Nice to see some Tom7 love here! I feel like he is the Incredible Hulk of obsessiveness. His rabbit holes are the deepest. Once he gets something in his head, there is little that can keep him from plumbing even the deepest depth of a topic - making the improbable possible all in the name of subverting expectations.