Search Unity

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: