i have a problem with detecting collision. i have a ball and an object say A. Ball has collider of type sphere and A is mesh collider. A is static and ball moves towards A.
The problem is that, sometimes ball doesn’t detect A and it partially passes through A.
Is that ball is moving too fast?
Are u sure that Box A have proper collider size? I mean the collider is occupying the whole Box A properly?
That can happen when the ball is having a high velocity, it moves quickly, quicker than the physics simulation tick to report the collision.
You can enable continuous collision detection on that body to resolve this. There are several threads on the forum on the subject and you can also check the following example: