Search Unity

Collider 2D in the shape of arch.

Discussion in '2D' started by Klik303, Dec 18, 2017.

  1. Klik303

    Klik303

    Joined:
    Dec 10, 2016
    Posts:
    19
    Hi
    I'm trying to build a simple 2d game for android and now I'm stuck.
    I have a shapes looks like circle with gaps (pic bellow) and I need to add colliders basic on circle but with gaps.

    Important information is, in game that objects are rotating all time.

    I tried to do it using polygon collider and in theory works good but only if there was max 3 objects with this colliders. If there is more then 3 then on Android game had max 13FPS (more objects less FPS).
    So polygon collider doesn't work due performance reason.

    Probably to have a better performance I need a collider in the shape of arch, but how to do it?


    arc.jpg

    arc1.jpg
     
  2. JohnnySix

    JohnnySix

    Joined:
    Nov 9, 2015
    Posts:
    8
    eses likes this.