Two pivot points for 2D Object

A note for the future: when posting code, please use code-tags and not plain text.

Thanks.