Search Unity

2-D Collision stopped working after update

Discussion in 'Physics' started by kromblite, Jan 3, 2015.

  1. kromblite

    kromblite

    Joined:
    Mar 19, 2014
    Posts:
    57
    My game used to have collision, and now it doesn't. I have not made any changes to my game since the collision worked, which means that this most likely has something to do with the update. Does anyone know how to fix this? If it helps, I had a similar problem when exporting the game as a web version. Oddly enough, 3-D collision still seems to work.
     
    Last edited: Jan 3, 2015
  2. Uberpete

    Uberpete

    Joined:
    Jan 16, 2014
    Posts:
    78
    I upgraded without a problem.

    Check your scripts, Physics2D settings (the collision matrix) and general setup. It's probably something to do with them.
     
  3. kromblite

    kromblite

    Joined:
    Mar 19, 2014
    Posts:
    57
    Not sure what to check for, but everything in the layer collision matrix is checked, so I doubt that's it.
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    5,629
    How the objects move?

    If you make new empty scene with couple objects, do they collide? (in the same project and/or in completely new project)
     
  5. kromblite

    kromblite

    Joined:
    Mar 19, 2014
    Posts:
    57
    I should have tried that earlier, actually, thanks for the tip. But no, there's no 2-D collision in the new scene, either. I did just discover a reoccurring error message in the inspector, though- "the collider didn't make any collision shapes because they all failed verification". Not sure what that means, though.
     
  6. kromblite

    kromblite

    Joined:
    Mar 19, 2014
    Posts:
    57
    bumping thread
     
  7. Uberpete

    Uberpete

    Joined:
    Jan 16, 2014
    Posts:
    78
    How big are your sprites (in terms of scale)? Post a link to the project
     
  8. kromblite

    kromblite

    Joined:
    Mar 19, 2014
    Posts:
    57
    Problem resolved. My team did some experimenting, and we DID manage to isolate the problem to the new version of unity- apparently the new version is a lot more picky about rotation and scale.