Question by
MarkMaa · Jan 20, 2020 at 10:49 PM ·
collisionrigidbody2dboxcollider
Collision or movement Bug (2D game dev)
At relatively high speed, the character in collisions goes inside BoxColliders and RigidBody2D
Comment
Best Answer
Answer by lgarczyn · Jan 21, 2020 at 10:24 PM
If you use transforms or MovePosition, you can always force a rigidbody through another. That's why you use rigidbody.AddForce and rigidbody.velocity to let the physics engine calculate the collision.
If you still get through colliders, I would suggest enabling continuous collision detection.
Your answer
![](https://koobas.hobune.stream/wayback/20220612221801im_/https://answers.unity.com/themes/thub/images/avi.jpg)