Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Dynamic Edge Collider2D?

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

  1. LaserRock

    LaserRock

    Joined:
    Jan 2, 2018
    Posts:
    12
    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:
    11,321
    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.