I’m having an issue with a block of code not behaving on a mac as it does on windows machines. The issue occurs on the mac in the editor, in a standalone build and in the webplayer.
After some debugging I’ve found this section to be the culprit. It works perfectly on windows yet fails to return true on a mac.
In this code is nothing platform specific, can you describe the behavior you encountered on both windows and mac, also which behavior the correct one should be?
Maybe the Mathf.Epsilon value is different on each platform, but I doubt it. Is there maybe other code we can look at?
Interesting. This is comparing rotation but I guess that’s another idea I hadn’t thought of. There are no errors appearing anywhere as far as I can see.
I’m aware it’s not platform specific (hence why my brain hurts trying to figure out the issue). I’ve checked each axis individually and on the mac at least one of them is not returning true as it does on windows. The game runs perfectly besides this function.
I’ve sent off to the support team to hopefully get some more insight. Worse comes to worse I’ll try other solutions such as that Fluzing suggested. I’m open to trying any other methods, was using Mathf.Epsilon simply because I wanted to give it a go.