Original Post
I'm trying to work out an algorithm to slide 3D AABBs against each other, making sure that they move correctly as they may have different velocities. I don't know if i should go for a full-blown polygonal collision detection and resolution algorithm or a specific AABB case. I don't store the mass of the objects so there are only movable and immovable objects so if the objects should be moved apart they will be moved by the same amount. So how do i find the vector along which i should separate the objects, using their previous and current positions? I think i have to find the side against which i have to project outside but can i find it without having to do a test on each of the vertices of each AABB ? On a closer look i think only the 2D case should be covered as for height i need to hack some stair climbing detection.