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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[SOLVED] Getting stuck on Tilemap Wall

Discussion in '2D' started by sliverkf, Jun 21, 2015.

  1. sliverkf

    sliverkf

    Joined:
    Mar 10, 2014
    Posts:
    6
    Hi guys,

    i'm new to Unity and getting problems on a simple 2D Tilemap...
    If i jump against a wall i getting stuck on the edge of the colliders :/
    Read something about ghost vertices but can't get it working.

    I can't find the problem, all colliders match perfectly...

    here the picture with gizmos on:
    screen_problem.png

    it's getting really frustrating right now.
    Can pls someone help me?

    EDIT:
    Remove link to the Project.
    Thx to jprocha101 :)
     
    Last edited: Jun 21, 2015
  2. jprocha101

    jprocha101

    Joined:
    Apr 8, 2015
    Posts:
    134
    Even though your colliders are aligned your character can get stuck. To solve it you can:

    1.) Use a single edge or box collider instead of multiples. I realize the tool you used to draw it probably created those for you, but some of them create a single collider.

    OR

    2.) Put your character in a circle collider instead of a polygon collider. That will help him slide right down the with less hangups. Or at least wraps its feet in a circle collider, though your character doesn't seem to have any :)
     
    Ensar_DAS and sliverkf like this.
  3. sliverkf

    sliverkf

    Joined:
    Mar 10, 2014
    Posts:
    6
    Thx for the help, i think i got it right now :D
     
    jprocha101 likes this.