title: XNA WorldMatrix and ViewMatrix
body: <p>I have created a Camera class that allows me to move around a scene in first person.  The camera has worked just fine until I decided to use it as a location to add something to the 3D world.  What I am trying to do is add a cube to the world when I press a mouse button.  I want to cube to eventually travel away from the camera, but for now I just want to create it right in front of it.  Sometimes it works and sometimes it creates it to one side or the other.  It all depends on how much I've rotated and translated the camera.</p>
  
  <p>I am tryinng to find the vector in front of my camera by using the View Matrix like so:</p>
  
  <pre><code>Vector3 inFront = Camera.ViewMatrix.Forward;
  </code></pre>
  
  <p>I plan to use the vector to add some physics behind the cube and have it travel away from the camera. For now I am just wanting to get a correct Vector.</p>
  
  <p>I know you normally draw thing in the world using the WorldMatrix, but I can't figure out how to convert my ViewMatrix into a WorldMatrix.  Still learing :-)</p>
  
  <p>What am I doing wrong?</p>
  
  <p>-Scott</p>