title: Shooting a ball from the middle of the camera
body: <p>I;m trying to make the first person character to shoot a ball from the middle of the camera,
  but it's just not working.
  Here is the first person character's script: 
  public Rigidbody ball;</p>
  
  <pre><code>void Update () {
      if (Input.GetButtonDown ("Fire1")) {
          Instantiate(ball,transform.position+new Vector3(0,1,0),transform.rotation);
      }
  }
  </code></pre>
  
  <p>and here is the ball's script :</p>
  
  <pre><code>public float speed=20;
  Vector3 direction;
  void Start () {
      direction = Camera.main.transform.forward;
  }
  void Update () {
  
      transform.Translate(direction *Time.deltaTime*speed);
      Destroy(gameObject,3);
  
  }
  </code></pre>
  
  <p>The ball is prefab.The problem is that the ball is not coming from the center of the camera.
  I dont understand why its not working.
  Anyone can help me?
  Thank you!</p>