- Home /
2D Box Collider not exact with 2D Rigid Body
I have a sprite with a 2d box collider that works fine on it's own, but when I add the 2d Rigidbody to my sprite, the collider seems bigger, for example, with just the box collider the sprites looks like touching the ground, but when I add the rigidbody it's looks like it's floating, why is this?
With RigidBody
Without Rigidbody
Answer by smoggach · Feb 03, 2015 at 07:07 PM
Without a rigidbody there are no physics affecting your object. With a rigidbody there are physics affecting your object.
So it's floating in the second one because physics are pushing it away from the ground (who also has a collider I assume)
what I mean is.... should I make the box collider smaller?
You could try it. This isn't something I've done before but perhaps you should look into rigidbodies with continuous collision detection.
Your answer
![](https://koobas.hobune.stream/wayback/20220613182340im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why can i drag colliders through each other? 0 Answers
Rigidbody 2D weird physics on kinematic rotate 1 Answer
What's a good way at keeping a ball bounce around inside the scene? 1 Answer
Why does poligon collider 2d restricts movement of box collider? 0 Answers
Box Collider 2d don't collide 3 Answers