Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Collision : Character tripping between perfectly aligned tiles of ground

Discussion in 'Physics' started by Adreqi, Feb 19, 2016.

  1. Adreqi

    Adreqi

    Joined:
    Dec 5, 2015
    Posts:
    5
    Hello !
    I'm making a kind of endless runner, with procedural ground generation.
    Ground is 2x2 tiles meshes with box collider, player is animated mesh with a capsule collider.

    When the player crosses the limit between two tiles, he has a little jump even tough they are perfectly aligned, like illustrated by following animation (only colliders are shown, two tiles + a step by step moving character) :


    Do you know why it does this and how to make it work as intended ? (obviously I don't want the character to jump ^^)

    Edit: I did try and replace the capsule collider by a box collider, the box collider just get stuck on the edge of the tile as if there was a step between.
     
    Last edited: Feb 19, 2016
  2. gorbit99

    gorbit99

    Joined:
    Jul 14, 2015
    Posts:
    1,350
    put a physics material on iz, and give it a friction of 0
     
  3. Adreqi

    Adreqi

    Joined:
    Dec 5, 2015
    Posts:
    5
    I tried that one with no success, sadly, on both the character and the ground. The little jump is still there.
     
  4. Adreqi

    Adreqi

    Joined:
    Dec 5, 2015
    Posts:
    5
    This answer on another thread helped me !
     
    Wappenull and zebleck like this.