Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Multiple Box Colliders vs 1 Mesh Collider

Discussion in 'Physics' started by LukasO, Jan 12, 2015.

  1. LukasO

    LukasO

    Joined:
    May 23, 2013
    Posts:
    115
    Just wanted a clarification to do with different collision set ups.

    I've written a script that goes through a mesh collider and roughly converts a mesh collider into a series of box colliders. The bounds of these colliders are then use in a series of intersecting checks. Is this more efficient than ray casting fewer times against the mesh collider? An example is attached.

    Thanks,
     

    Attached Files: