transform cube on client