title: How can I make this movement relative to my camera direction
body: <p>I need to move my target object in world space relative to the direction the main camera is facing but only on the x&amp;z axis and relative to the my player on the on the y axis. </p>
  
  <p>Any guidance is greatly appreciated.           </p>
  
  <pre><code>public class test : MonoBehaviour {
  
  public string raise = "Raise";
  public string lower = "Lower";
  public string left = "Left";
  public string right = "Right";
  public string closer = "Closer";
  public string further = "Further";
  
  public GameObject target;
  
  
  private float xPos;
  private float yPos;
  private float zPos;
  
  
  // Use this for initialization
  void Start () {
  
  
      xPos = target.transform.position.x;
      yPos = target.transform.position.y;
      zPos = target.transform.position.z;
  
  }
  
  void FixedUpdate () {
  
      Vector3 currPos = target.transform.position;
      Vector3 nextPos = new Vector3 (xPos, yPos, zPos);
  
      target.GetComponent &lt; Rigidbody &gt; ().velocity = (nextPos - currPos) * 10;
  
      if (Input.GetButton (raise)) {
          print ("Moving Up");
          yPos = yPos + 0.05f;
      }
      if (Input.GetButton (lower)) {
          print ("Moving Down");
          yPos = yPos - 0.05f;
      }
      if (Input.GetButton (left)) {
          print ("Moving Left");
          xPos = xPos - 0.05f;
      }
      if (Input.GetButton (right)) {
          print ("Moving Right");
          xPos = xPos + 0.05f;
      }
      if (Input.GetButton (closer)) {
          print ("Moving Closer");
          zPos = zPos - 0.05f;
      }
      if (Input.GetButton (further)) {
          print ("Moving Further");
          zPos = zPos + 0.05f;
      }
  }
  </code></pre>