added option to use rotate pivot to get position