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

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?

1 Like

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.
1 Like

yeah this was fixed, grab latest version.