I have an object (my character) with a Rigidbody and a BoxCollider. The BoxCollider is not a trigger and there is no CharacterController on the object.
I’m dropping this object onto a floor which also has a BoxCollider (not a trigger).
Both objects are on the Default layer and I have collisions enabled between Default/Default.
I’m expecting the character to collide with the floor and stop but instead what happens is it collides with the floor and then slowly sinks through the floor and falls out the other side. Does anyone know why this is happening?
I’ve found a workaround, and this is where it gets really strange. If I add a SphereCollider to the character, the character lands on the floor as expected. Then, if I remove the SphereCollider while the game is running, the BoxCollider starts working correctly on its own and the character lands on the floor as expected on further drops.
Any help would be appreciated!