pj prevent dropping off the collider ..

prevent pj out, the box collider …

On the outside you can not get in, but from the inside out if you can leave …

How to Fix It? …

Unfortunately, box colliders do not detect collisions from the inside. What you need to do is put up a series of box colliders that represent the faces of the box or use a custom mesh.