- Home /
Rigidbody2D Player collider seems larger than displayed
Hey! I have an object with a BoxCollider2D and a Rigidbody2D, which is the blue box in the attached image. The black ground has a TilemapCollider2D and a CompositeCollider2D. For some reason, this is the closest the two objects will get to each other. As you can see, there is a noticeable gap about .015 units wide. The colliders bounds are as the sprites would suggest. Any help on this would be appreciated!
UPDATE
This has now started happening with another object, without a Rigidbody2D and the collider set to trigger. The presence of a SpriteRenderer does not affect the issue.
Your answer
Follow this Question
Related Questions
Tilemap Collider/Composite Collider leaving gaps 2 Answers
Detect 2D GameObjects when "Colliding" with each other without RB and collider. 1 Answer
Avoid physics from collision 1 Answer
Recalculating collisions after Physics2D.IgnoreLayerCollision()? 1 Answer
How Do I Make a Rigidbody2d keep its force and move at a consistent speed? 2 Answers