Updated rotate modifier to better calculate amount of rotation.