13 minutes ago, Randy Gaul said:
Subtract the center of each AABB so you have a vector pointing from shape A to shape B. Then look at the components of this vector. The component with the largest absolute can represent two faces, one on each AABB. On shape A, the face will be the one with the normal pointing in the same direction as the signed value of said component. On shape B, the face will be one pointing in exactly the opposite direction.
Thank you so mch for your Answer @Randy Gaul!
If I'm understanding correctly,
1- substract the center of each AABB = 3d vector a.
2- if |x| of a is the biggest, this represents a face on each AABB.
3- if x is pointing at the same(or exact opposte) direction of the normal(of a face), two AABB are colliding on those faces.
Thank you!