Search Unity

  1. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  2. Unity 2017.2 beta is now available for download.
    Dismiss Notice
  3. Unity 2017.1 is now released.
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice
  6. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    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,214
    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