Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Maze 2D Polygon Collider Gen from 3D Mesh Collider or PNG

Discussion in '2D' started by KeepTrying, Mar 24, 2015.

  1. KeepTrying

    KeepTrying

    Joined:
    Feb 23, 2011
    Posts:
    119
    Anyone know a way to generate a Maze 2D Collider from the Red Lines that you see in this image, so the player can walk INSIDE then ?

    I'm able to generate pretty fast from my OBJ model a 3D Maze with this Mesh Collider Component, but 2D Colliders and and 3D Colliders are not friends. I've tested a looooot of tools in UAS, none of then worked, they created "scrambled" colliders or always showing the same message:

    "The collider did not create a collision shape as it failed verification. This could be because it was deemed too small or its vertices were too close. Vertices can also become close under certain rotations"

    Using Unity 5.
    >Thank you!
     

    Attached Files: