moveWithCollisions boxes overlap

two box overlapped by moveWithCollisions,am I missing some setting?

my demo with WASD to control box

Heya, the default ellipsoid size used for collision checks is the wrong size for your mesh, eg (1, 1, 1) works well in this case. I also added spheres to show the ellipsoids so that it’s easier to see what’s going on. :slight_smile:

EDIT: You could also try using box impostors with a physics system like ammo for more accurate collisions since the physics body would fit the box mesh perfectly…


Thank you for your quick reply, it’s very helpful.