Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question The object stops at a distance from the wall

Discussion in 'Scripting' started by Florgas, May 11, 2024.

  1. Florgas

    Florgas

    Joined:
    May 10, 2024
    Posts:
    2
    Hello everyone!
    I'm a beginner.
    I spent more than two hours, but didn't find a solution.

    I have a player (box).
    And have a wall (box).
    When i trying touch the wall, it stop with a space between objects (~0.015).
    I didn't find anything in box collider and rigidbody...
    Please help :)



    Player:


    Wall:
     
  2. samana1407

    samana1407

    Joined:
    Aug 23, 2015
    Posts:
    284
    Perhaps it depends on Physics2D settings.

     
    Florgas likes this.
  3. Florgas

    Florgas

    Joined:
    May 10, 2024
    Posts:
    2
    This is it!
    Thanks, my friend!