Adding some fixes to setOrigin and adding a small timeout to object rotation.