- Home /
Why does my Rigidbody2D stop moving and stuck when hit 2 colliders at once?
I'm making a simple ball shooter game and I'm facing a discomfort issue about collision. When I start shoot ball with specific speed in a direction using velocity, if ball hits one object,everything is oke,ball will move in reflect direction. But if ball shoots in corner created by 2 collider (like an image below) and collides with 2 colliders at the same time,it stuck and doesn't move anymore. How can I avoid this? Is it common issue when hit more than one collider in unity? I tried everything I can find on the internet such as: - Use bool flag - Use physical material - Use continuous collision - Use edge collider instead of box collider I don't use enemies as trigger because balls with high speed regularly go through them.What I do in collision event is whenever ball collide with enemy,ball will continue move in reflect direction. So,I wonder if ball collides with 2 enemies in squared position can cause velocity = 0?? I hope I can get an clear answer for this problem. Thank you so much!
[1]: /storage/temp/186265-screenshot-2021-09-15-183905.png
Your answer
![](https://koobas.hobune.stream/wayback/20220613043040im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Different collision results in some areas. 1 Answer
How do I make collisions where both objects are moving but pass through each other? 0 Answers
Allow collision but take no force from it, not increasing object mass 1 Answer
Rigidbody2D without drag on collision 0 Answers
Rgidbody 2d keeps freezing 0 Answers