title: Placing an object in front of the camera
body: <p>This should be an easy task, and I have googled it, but I can't figure out why any of the examples are working for me.</p>
  
  <p>Basically, I want to place tiles on the ground in my first person game. I want the object I want to place on the ground to "float" in mid-air while choosing the perfect location for it. I can instantiate the object, make it a child of the player camera, but I'm unable to position it X units in front of the camera; it always ends up "on" the player;</p>
  
  <pre class="lang-cs prettyprint-override"><code>public void StartPlacing ( Item item ) {
      Object itemPrefab = Resources.Load( "Prefabs/" + item.prefabName );
  
      GameObject itemObject = (GameObject)Instantiate( itemPrefab );
      itemObject.transform.parent = playerCamera.transform;
  
      // What to do here to place it in front of the camera? I've tried this:
      itemObject.localPosition = new Vector3( 0, 0, 5 );
  }
  </code></pre>
  
  <p><strong>UPDATE:</strong> The camera is a child of the player (Character Controller), and the camera is in perspective mode.</p>