Hi there. I’m still noobish in Unity and I’ve got a particular scenario with 2D physics materials and colliders that has me confuzzled.
I’m making a breakout style game with your standard paddle and ball (or balls, as you can have multiple running about on the level). I want my ball objects to react to physics, so I have a Rigidbody 2D and a Circle Collider 2D on them. I don’t want the ball to collide / interact with other ball objects, so I had it set as Is Trigger on the circle collider.
This was fine until I wanted to use a 2D Physics Material on the ball. According to this post, 2D Physics Materials don’t appear to work when the collider is marked as a trigger:
http://answers.unity3d.com/questions/855845/physics-material-2d-not-working.html
So I’d really like to use a 2D Physics Material, but I also can’t set my ball object to a standard collider as they will interact with each other if I do. So does anyone know how I can:
-
Make a trigger collider use the 2D Physics Material assigned to it?
-
Make a standard collider ignore other ball objects and still interact with all other objects?
Any thoughts would be greatly appreciated. Thanks.