Oh and to use:

Vector playerPosition = new Vector(); playerPosition.x = Math.abs(v.x); // get player X,Y,Z playerPosition.y = Math.abs(v.y); playerPosition.z = Math.abs(v.z); playerSphere.update(playerPosition, 1.0f); AABB voxel = new AABB(1f, 1f, 1f); // width, height, depth Vector voxelPosition = new Vector(); voxelPosition.x = Math.abs(bx); // get object X,Y,Z voxelPosition.y = Math.abs(by); voxelPosition.z = Math.abs(bz); voxel.update(voxelPosition); if (CollisionLibrary.testCircleAABB(playerSphere, voxel)) { // do whatever }