Unity Collider2d



I'm making boundaries for the characters in my 2d game in unity 5. I added box colliders to the borders and my characters but the characters don't stop when they run into the other borders. Improve this question. Follow edited Apr 29 '15 at 7:01. Collider2D collision not working in Unity. Unity- after gathering letters in the game how can we generate random words at the ed of the level. Hot Network Questions Do all periodic or 'natural' sounds contain major chords? What was the rationale behind 32-bit computer architectures?

A couple of scripts that helps you optimize the non primitive 2D Colliders in Unity (Edge Collider 2D and Polygon Collider 2D). You can change the level of optimization in the Editor with direct feedback in the Scene View (see the GIFs) to find a suitable compromise between performance and good approximation of the sprite shape. Usually you can loose quite a bit of points with virtually no change in the polygon contour.

Unity Collider2dUnity collider2d getcontactsUnity Collider2d

For the Edge Collider it should also be said that it creates a good edge collision shape for you which doesn't happen by default in Unity.

Unity Disable Collider

At this point you can also get the latest package from the Asset Store

StatusReleased
CategoryTool
Rating
AuthorAlchem
Tagsphysics2d, tool, unity2d, unity3d

Download

Unity 2d Triggers

Log in with itch.io to leave a comment.