Godot Version
4.7
Question
I’m building my world through streaming so i have a lot of modular geometry and colliders that butt up against each other. Capsule colliders can traverse these seams fine but boxcolliders will snag and get stuck or flip over (ghost collisions). I spent a few days trying to fix it but one day I was troubleshooting with google gemini and it taught me a cool trick that I wanted to share because it completely solved the problem for me.
You set the floor/wall friction to 0.1 and then play around with the mass, gravity scale, linear/angular damping until it behaves just like normal when friction is 1. That doesn’t solve the ghost collisions but if you add a small sphere collider to the bottom of the object so the box is raised maybe 0.02 above the floor and then lock the angular XZ rotation it will slide over the seams just like the character capsule collider.
Such an easy fix! And it looks just like normal too.
I’m gonna start using gemini more often. The downside with this method is that the objects will have to stand upright and not tip over but it will work good for physics objects like furniture where you want the player to arrange them, etc. If you want to give them back their regular behaviour for example when an explosion goes off just turn off the sphere collider and angular rotation locks to have it flip around.