- Home /
Model stuck on collider
Hi, I have a problem with model got stuck on collider.
I'm making a game with 3D model but using 2D Physics.
The model got a rigidbody 2D and a box collider. The model will be moving to the right and I have the grounds to be generated infinitely. The problem is, in some place the model got stuck between the intersection on the current ground and next ground.
I have tried resizing the colliders, but I still get the problem..
Here's a screenshot(it got stuck between A and B)
the cause may be the B collider be tiny bit taller then the A collider causing the fish to hit the corner, try modifying the b collider.
@taxvi well the colliders are supposed to be identical.. I've found the solution below. Thanks for the reply :)
Answer by GameGuy · Jan 06, 2015 at 01:05 PM
It stucks because of the box collider, you should use circle colliders in the lower corners of your box collider and they should overlap the sharp corners on your dolphin´s collider.
Here's a nice article (Ghost vertices) explaining the problem with the solution somewhat similar to @GameGuy has specified. It is for box2d but the principle remains the same.
Your answer
![](https://koobas.hobune.stream/wayback/20220613175728im_/https://answers.unity.com/themes/thub/images/avi.jpg)