Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

18

Found in

5.5.0f3

Issue ID

891250

Regression

Yes

Transform.position() values becomes to NaN when one GameObject rotates while colliding the edge of another GameObject

Physics

-

-

Priority: 4Not yet prioritized for a release

-

Severity: 2No workaround

To reproduce:
1. Open repro project
2. Play scene
3. Using arrow keys (or w,a,s,d) move cube to the corner of ground

Expected: when cube('player' game object) collides with 'ground' corner, player's position values should not be set to NaN

Regression started in 5.5

Reproduced on: 5.5.0a6, 5.5.2p1, 5.6.0b11, f1, 2017.1.0a3
Not reproduced on: 5.4.4p3

Comments (13)

  1. 815b84a27579d9780435b96d7677c557?d=mm

    Achondrite

    Mar 29, 2018 21:02

    I just noticed this issue in 2017.3.1, only in the builds (not in the editor).

  2. 63cd3c0a302c34f9519f06f08812bd0f?d=mm

    maxtyt

    Mar 11, 2018 08:27

    Solution was easy. Simply disable PCM in PhysicsManager!

  3. E3b644d8039dac9aa48e46f3336e1647?d=mm

    dariotito18

    Mar 06, 2018 02:29

    I HAVE THE SAME ISSUE, DO SOMEONE FIND THE SOLUTION?, I HAVE THE NEW VERSION OF UNITY ON 2018

  4. 63cd3c0a302c34f9519f06f08812bd0f?d=mm

    maxtyt

    Dec 24, 2017 17:28

    Yes! Finally I found a solution. if(float.IsNaN(transform.position.x)) Destroy(rigidbody); and then just recreate it in next FixedUpdate.

  5. 63cd3c0a302c34f9519f06f08812bd0f?d=mm

    maxtyt

    Oct 22, 2017 14:03

    Error appears only when I respawn my car and it gets inside another car. I don't see any solution. It was good in Unity 5.3.6 but I cannot revert back to it from Unity 5.6.4.

  6. 63cd3c0a302c34f9519f06f08812bd0f?d=mm

    maxtyt

    Oct 20, 2017 11:54

    I get same error sometimes when trying to rotate car in 5.6.0f3.
    I receive Vector3 via network, then check if it is NaN:
    if(float.IsInfinity(rot.x) || float.IsInfinity(rot.y) || float.IsInfinity(rot.z))
    {
    return;
    }
    Quaternion newrot = Quaternion.Euler(rot);
    transform.localRotation = newrot;

  7. B24aa2341826af9f7563f2561860c1d3?d=mm

    jo82

    Oct 17, 2017 17:24

    Crashes, freeze my game very often. Without this everything would be perfect.

  8. 772c57a735ad31653e0285570d99f2ca?d=mm

    CageyKG

    Oct 14, 2017 01:03

    Is there any source of info we can follow for updates or roadmaps on this issue? It's severely impacting my game and (sounds like) many others'.

  9. A6bba7df2927e1cae43418d4430442f3?d=mm

    AndersMalmgren

    Sep 14, 2017 08:37

    This needs to be addressed now along with other Rigidbody related bugs like the

    INVALID PARAMETER POS IN RIGIDBODY.TRANSFORMCHANGED BECAUSE IT WAS INFINITY OR NAN

    and

    Infinity or nan floating point numbers appear when calculating the transform matrix for a collider

    Our game is released on Steam and the customers and not happy!

  10. 23104eb3cdcbf40185eeb60824e74e9f?d=mm

    Malkin8

    Jul 01, 2017 19:16

    This is ridiculous! This renders my game unplayable until a fix is made. Why has this still not been sorted out?

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.