- Home /
Player falling through the flloor
Hi. I start a new project and import the 2D unity package. Then I add 2 sprites (1 for player and 1 for a ground).
So... There the things get confused in my head:
I added a Rigidbody2D and a CapsuleCollider2D into the player sprite, making it list of components be [Transform, SpriteRenderer, Animator, CapsuleCollider2D and Rigidbody2D] in this order.
And the ground was added only a BoxCollider2D, making it list of components be [Transform, SpriteRenderer and BoxCollider2D].
Then I pressed "Play" and the player falls through the ground.
Both Colliders IsTrigger are disabled. The Rigidbody is not kinematic. And Both are in the same layer (Default).
What did i forget?
Your answer
Follow this Question
Related Questions
rigidbody2d does not follow physical rules 0 Answers
Tilemap collider - character passes through wall 1 Answer
2d rigidbody falling from the collider when it is moved 3 Answers
On click, select game object -working with objects in scene but not instantiated objects 2 Answers
2D physics object acts weird when pressed into other physics object 0 Answers