Reputation: 11
I have a Canvas, there are 2 images on it. I added BoxCollider 2D to the first image, and BoxCollider 2D and Rigidbody 2D to the second, and then I placed the second image above the first. I start the game, the image begins to fall, and passes through the first image. Moreover, if you set a different color for the second image, you can see that the second image passes over the first. What is my mistake and how to fix it?
I need the second image to fall on the first and stay there.
Upvotes: 0
Views: 64
Reputation: 11
I made sprites from images and placed them in world space, everything works as it should.
Upvotes: 1