Search Unity

RigidBody2D freeze X Y position Problem

Discussion in '2D' started by Ciryus, Jul 3, 2015.

  1. Ciryus

    Ciryus

    Joined:
    Sep 17, 2012
    Posts:
    38
    Hi,
    Sometimes when I test my scene if I have a rigidbody with frozen positions X and Y it will
    teleport my object to the zero position of the scene, making him jitter strangely, has if there was a conflict between animation and Update scripte (but there is not), if I uncheck the freeze position, the object behaves normally till I check them again.
    It Happens sometimes and if I restart Unity the issue disappear till I make changes in my scripts.
    Has anyone ever faced this situation?
    Cheers.
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,455
    It might be related to a constraints bug that was fixed in the 5.1.1a4 patch release.
     
  3. SomeAlexander

    SomeAlexander

    Joined:
    Feb 24, 2013
    Posts:
    18
    Same issue in 5.1.1p4 for me. I have gameObjects with rigidBody2d with frozen X position. And sometimes when I start game all these objects instantly teleporting to zero position.
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,455
    Could you please create a bug report with a simple reproduction project and provide me with the case number?
     
  5. SomeAlexander

    SomeAlexander

    Joined:
    Feb 24, 2013
    Posts:
    18
  6. Too-Nerd-To-Die

    Too-Nerd-To-Die

    Joined:
    Apr 28, 2014
    Posts:
    44
    Its the same with us, sometimes its teleport some objects to 0,0,0 in world space and crash de editor. Using Unity 5.1.1p3 (64-bit).
     
  7. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,455
  8. RamonDevs

    RamonDevs

    Joined:
    Apr 11, 2015
    Posts:
    13
  9. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,455
    Have you tried the fix? It was released in 5.1.2p3.
     
  10. SomeAlexander

    SomeAlexander

    Joined:
    Feb 24, 2013
    Posts:
    18
    In 5.1.3 all works fine, but in 5.2.0 i have this problem again...
     
  11. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,455
    I have just confirmed that this fix (and several other 2D physics fixes) didn't make it to the 5.2.0 release but instead went into the pending 5.2.0 patch 1 release which has a tentative release date of next Wednesday (16th Sept 2015).

    So many fixes happen now that inevitably some come in when a release has already been sent to QA in which case the fixes go to the subsequent patch release.

    I can confirm that there are just over 100 fixes ready in 5.2.0 patch 1, this fix included.

    Sorry for the confusion.
     
    Last edited: Sep 10, 2015
  12. lavz24

    lavz24

    Joined:
    Mar 14, 2013
    Posts:
    45
    Waiting for the patch