Search Unity

Mathf.Approximately

Discussion in 'iOS and tvOS' started by sevensails, Aug 5, 2015.

  1. sevensails

    sevensails

    Joined:
    Aug 22, 2013
    Posts:
    483
    I don't know in which update this happened, but Mathf.Approximately is returning false results to me on some situations it was working before (on iOS il2cpp builds).

    Someone else had problem? If you need I can try to figure out the exact values where the result is now different than before.

    Thanks
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    @Wagenheimer

    Yes, this is a known problem with IL2CPP. It is related to some ugly side effects of compiler and processor specific optimizations that occur in a few cases. We're working on a fix now, so I would expect this to be corrected in the next few patch releases.
     
  3. Sprawl

    Sprawl

    Joined:
    Jan 19, 2014
    Posts:
    42
    Has this been fixed ?
    It still happens on Xbox One for us.
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    I believe it was corrected, as it was specific to ARM processors, if I recall correctly. Can you submit a new bug report?
     
  5. Sprawl

    Sprawl

    Joined:
    Jan 19, 2014
    Posts:
    42
    Alright. Thanks for the quick answer ! Doing a bit more testing on our end.