Search Unity

How to make a ring collider or torus collider?

Discussion in 'Physics' started by o0_ICE_0o, Nov 7, 2016.

  1. o0_ICE_0o

    o0_ICE_0o

    Joined:
    Apr 3, 2014
    Posts:
    21
    When i make a ring or torus collider where the middle is empty and test it in gameplay, lo and behold even though the middle was empty the collider wont let things pass through.

    Problem: Ring/torus colliders wont let object pass through the empty middle area.
    Note:
    All my colliders have convex on because unity throws angry fits at me when i have it off.
    Link to image
     
    lotusexchange likes this.
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    It's not possible to have a concave shape as a convex mesh collider, by definition. If the ring doesn't move, simply leave off convex and use it as a normal mesh collider. If the ring does move and needs a rigidbody, the only feasible solution is to have multiple primitive colliders arranged in the shape of a ring.

    --Eric
     
  3. o0_ICE_0o

    o0_ICE_0o

    Joined:
    Apr 3, 2014
    Posts:
    21
  4. HussienAbdElhamed

    HussienAbdElhamed

    Joined:
    Jun 27, 2019
    Posts:
    11
    Hi @o0_ICE_o0 do you find solution for this problem?
     
  5. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Read what I wrote above.

    --Eric
     
  6. HussienAbdElhamed

    HussienAbdElhamed

    Joined:
    Jun 27, 2019
    Posts:
    11
    @Eric5h5 thank I found assets help me in my problem because I don't understand your solution thanks again for your effort. :)
     
  7. manirana94

    manirana94

    Joined:
    Apr 16, 2018
    Posts:
    7
    unity_72NNT-e0FQsyKw likes this.