Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

All game objects jump to position 0,0,0 on play

Discussion in 'Editor & General Support' started by doctor_wombat, Aug 7, 2015.

  1. doctor_wombat

    doctor_wombat

    Joined:
    Jul 14, 2013
    Posts:
    4
    I have been building a 2D platformer and I have been coming across a very strange behaviour.

    When I run the game, about 4 out of 5 times some or all of the game objects in the scene immediately position themselves to 0,0,0. Most of these game objects don't have any scripts attached, but do have a BoxCollider2D and a RigidBody2D.

    This means that every time I want to run the game, I have to play and stop it several times until I find an instance when the game objects are all in their correct positions. No settings change between these runs so I am at a loss as to what is causing it. Has anyone encountered this behaviour before or have any idea what might be causing it?
     
    lavz24 likes this.
  2. lavz24

    lavz24

    Joined:
    Mar 14, 2013
    Posts:
    45
    I'm having this exact problem, objects with 2dColliders and Rigidbody2d reset to zero.

    Have you solved the problem?

    EDIT: Unity 5.1.2p3 I think resolve the problem:

    • (707400) - Physics2D: Stop Rigidbody2D X/Y Constraints from occasionally moving the body to the world origin.
    • (713073) - Physics2D: Stop trigger-contacts being reported early when using continuous collision detection.
     
    Last edited: Aug 25, 2015
    karl_jones likes this.
  3. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    832
    yeah this was fixed, grab latest version.