java – Check if face is in bounding box

I am working on collision detection for my game 3D game using OpenGL with LWJGL.

All models have a list of collision face objects containing the vertex position and face normal. How would I check if a face is being intersected by an AABB (the collision box of the player)? I’ve thought of checking if any of the vertices are overlapping with the AABB, but this wouldn’t work for faces that are much larger than the player, such as a large wall.

The CollisionFace class:


import org.lwjgl.util.vector.Vector3f;

public class CollisionFace {

    private Vector3f v1;
    private Vector3f v2;
    private Vector3f v3;
    private float yNorm;
    
    public CollisionFace(Vector3f v1, Vector3f v2, Vector3f v3, float yNorm) {
        super();
        this.v1 = v1;
        this.v2 = v2;
        this.v3 = v3;
        this.yNorm = yNorm;
    }
    
}