Search Unity

2D Box Colliders Won't Touch (Solved)

Discussion in '2D' started by ExxSeven, Sep 18, 2014.

  1. ExxSeven

    ExxSeven

    Joined:
    Sep 18, 2014
    Posts:
    5
    I've been making a little game, just to figure out Unity and how it works, and no matter what I do, I can't make the sprites touch. They seem to hover about 0.1 units away from each other.

    Here's a picture to illustrate what I'm talking about. This is just how the character rests on the ground when stationary (I'm using a "Rigidbody 2D" for gravity). If you want, I can provide the project files too. xNAAE6b.png
     
  2. ExxSeven

    ExxSeven

    Joined:
    Sep 18, 2014
    Posts:
    5
  3. Pyrian

    Pyrian

    Joined:
    Mar 27, 2014
    Posts:
    301
    Are you sure that's 0.1? Or is it more like 0.01? Because the latter is about typical and is just something you have to work around. It may mean re-scaling the game around it. For performance reasons, the physics engine is not at all scale invariant.
     
  4. ExxSeven

    ExxSeven

    Joined:
    Sep 18, 2014
    Posts:
    5
    Ahh, I see. I guess I'm just working too small. Thanks for that, it was really confusing to see that no one else was having my problem, which turned out to not exist.