- Home /
Is it possible to use layers with physics?
Hello, I have a situation where I have 2 gameplay modes. So same location can be viewed in MODE1 and MODE2, each one will show mutually exclusive art objects and I use layers to hide/show these layers when corresponding mode is activated.
Now this modes also have physical obstacles that are present in mode but not in the other.
So i was wondering if it's possible to use layers for physics in similar way we can use layers for hiding/showing art assets? So items on Layer one would not collide with items on Layer 2 but both would collide with Background layer.
If its not possible what other solution would you suggest?
Thanks
Answer by sotha_sil · Dec 16, 2013 at 11:26 PM
EDIT: robertbu posted solution In case anyone else wants to know, EDITOR -> Physics has checkboxes where you can specify which layer collides with which layer. http://docs.unity3d.com/Documentation/Components/LayerBasedCollision.html
Your answer
Follow this Question
Related Questions
Physics or Animation? 2 Answers
Non Diagonal Physics Layer Editor? 1 Answer
Can't see Unity 4.3 sprite layer behind Refraction object 0 Answers
Soritng 2d objects 0 Answers