I was wondering how to cut/resize a block in the famous stack game?
At time of cut, you can either create and add 2 new blocks and remove the current or you can add 1 new block (the cut part) and scale the current one. Either way, you will have to calculate the locations at which both final blocks need to be placed as their centers will not match up with the original block.