Layers and Collision 2D

Hi,

i have a problem with different layers and the collisions on them. if i have an object with for example layer “Player” and then an object with the layer “ground”, the object with the “Player”-layer (has a rigidbody 2D) falls through the ground. if i change the “Ground”-layer from the ground object to the “Player”-layer then the objects collides. What is wrong?

1 Answer

1

You have to set what layers collide with each other. You set this in the Physics options. I’m not sure if the 2D physics options are in the same location as the 3D physics options or not.

They are not; Physics and Physics2D are separate engines and don't interact at all.

I know they are separate engines, That doesn't mean they can't put the options into a single options menu separated into sections.

Do you know how to get to the Physics 2D options? Edit->Project Settings->Physics 2D?

Thank you. Now it works. :-)