Changed setOrigin to vector.