- Home /
Mesh Colliders and 2D Colliders
Hi,
I try to make a 2D game and I needed a shape like 3/4 parts of cicrcle. So I made a 3D and 2D meshes in Blender and imported it. Unfortunately none of them works. The Mesh Collider for 3D object seems to not collide with 2D colliders at all and Polygon Collider 2D doesn't fit the 2D mesh. How can I make it work?
Answer by Ali_Jaffer · May 07, 2018 at 10:20 AM
you need to understand that 2d colliders will works only with 2d Colliders. and viceversa for 3d colllider. for 2d Collider you will have to use OnCollisionEnter2D and OnTriggerEnter2Din your Scripts For Collsion2d https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnCollisionEnter2D.html For Trigger2d https://docs.unity3d.com/ScriptReference/Collider2D.OnTriggerEnter2D.html you have made 2d mesh. instead make a shape in photoshop