- Home /
Question by
VSuper · Oct 05, 2014 at 01:15 PM ·
2dcollisiongameobjectignore
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?
Comment
Answer by 767_2 · Oct 05, 2014 at 01:23 PM
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
Your answer
Follow this Question
Related Questions
How to ensure projectiles don't bump into each other 2 Answers
1 collider 2 fuctions, how? 1 Answer
Unity 2D Colliders not Colliding 2 Answers
Simple on Collision Help (C#) 2 Answers