Both the enemy and the player aren't solid and can pass through eachother, but they are also effected by the walls.