title: Mirror object along vertical axis in Unity?
body: <p>When in Unity I want to symmetrically mirror a transform along the x axis, for many shapes this works fine:</p>
  
  <pre class="lang-cs prettyprint-override"><code>reflection.localRotation = new Quaternion(
          original.localRotation.x * -1f,
          original.localRotation.y,
          original.localRotation.z,
          original.localRotation.w * -1f
          );
  
  reflection.localPosition = new Vector3(
          original.localPosition.x * -1f,
          original.localPosition.y,
          original.localPosition.z
          );
  </code></pre>
  
  <p>But what would be the code for mirroring along the y axis? And what for mirror along the z axis? The positioning part is easy, but I'm wondering about the quaternion part. Thanks!</p>