I have an idea.
First rotate the cube 90 degrees. Then, check for the shpere collision. If the shpere don't collide, then rotate the cube again 90 degrees, and once the cube has been completely rotated, then check again for sphere collision. Theoretically it should work...
Sergio.
the problem is that when the spheres collide, it's before the pieces are perfectly mirrored, no matter how small the spheres are.
First rotate the cube 90 degrees. Then, check for the shpere collision. If the shpere don't collide, then rotate the cube again 90 degrees, and once the cube has been completely rotated, then check again for sphere collision. Theoretically it should work...
Sergio.