Matrix4x4 isIdentity doesn't work

Hi all,

I’m programming unity using only c# with monodevelop. I find very strange that the isIdentity test fails in a code like the following. I know the problem related to float numbers and compare operations but I believe and hope that is completely managed by the “isIdentity” property exposed by Unity API.

Also in that simple code ( obviously written for test on the API ) it doesn’t work. Is it a known issue?

[ bArance is just a “boolean fruit” - Arance is an orange in italian - stupid code to allows breakpoint. In a more structured part of my code the result is exactly the same, no hit on the breakpoint placed in the if sentence and the matrix is also in there just a copy of the class static property “identity”]

fail means: always return false :wink: