Yes, if a player comes in contact with the terrain on any side, they are noted as interacting with the treasure on top of it.