Here's a mockup of I'd like to do:
(click to see animated GIF)
The smaller square layer is "attached" to a corner of the larger solid. As the larger solid moves, the square maintains its relative position. It also rotates along with it. However, when the larger solid is scaled, the square remains at the same size.