How to achieve this kind of collision detection in 2D.

Hi,

I need my bullets push enviroment objects such as chests in the game so I can’t have them as trigger (at least without custom code to push them) but I want them not to push enemies when they collide and just detect the collision.

How can I achieve this?

Thanks.

You want layer-based collision.

Maybe you have to use 2 différents Objects-Colliders. One that push and one that use trigger.

Maybe here’s some help : http://answers.unity3d.com/questions/362021/eficient-one-way-collider.html

Physics.IgnoreCollision. seams interesting in your purpose…