Search Unity

  1. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  2. Unity 2017.2 is now released.
    Dismiss Notice
  3. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  6. Unity 2017.3 beta is now available for download.
    Dismiss Notice

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.
    [​IMG]
    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
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    31,348
    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
     
    o0_ICE_0o likes this.
  3. o0_ICE_0o

    o0_ICE_0o

    Joined:
    Apr 3, 2014
    Posts:
    21