Search Unity

3D: Player getting stuck between two platforms

Discussion in 'Physics' started by NickWinters, Sep 6, 2020.

  1. NickWinters

    NickWinters

    Joined:
    Dec 6, 2014
    Posts:
    23
    Hello,

    I have my player game object with a box collider. Its physics material has 0 friction and is set to minimum.

    There are two cubes that serve as platforms. They are the same height and touching. When moving across them perpendicular to the touching edges, my player get stuck. If I move at a 45 degree angle to the touching edges, my player is able to get through. If I increase my player's friction to 0.6 and attempt to cross at 90 degrees, if I keep going forward, eventually it will break out of its stuck state and go over the edge.

    What would cause my player to get stuck?

    This is the inspector if both cubes are selected. They are the same height and have the same colliders.
    Two Platform Stats.png

    And here's a screenshot of the scene. The player gets stuck trying to cross the border at 90 degrees to the border.
    Two Platforms.png