Search Unity

Dynamic Edge Collider2D?

Discussion in 'Physics' started by CDAXRC, Nov 9, 2018.

  1. CDAXRC

    CDAXRC

    Joined:
    Jan 2, 2018
    Posts:
    3
    So I have this and my problem is that colliders starts jittering/overshooting through other colliders.
    It's impossible to use edge collider in that way? Multiple colliders like circles works little bit better but still glitching when I bend the beam downwards. Any ideas how to solve this problem? Honeycam 2018-11-09 10-36-36.gif Honeycam 2018-11-09 10-49-20.gif
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    1,600
    It's not "glitching", it's because you're causing the colliders to overlap in a way the solver has no "correct" solution for. The overlap is also instant so you're teleporting the colliders instantly to another position and from what I can see, it's on the other side of the collider you want it to contact so the solution is to push it away downwards.