Ignore collision for all except one

Hello, I’m making a 2D game and I want a GameObject to ignore all collision except one (the ground). How can I do that?

1 Answer

1

put your object on a layer and ground on another layer use collision matrix and uncheck collision between them

There's also this : http://docs.unity3d.com/ScriptReference/Physics2D.IgnoreCollision.html